Spark/Yarn UI views all use dns name not IP:port name, any way to change? - amazon-web-services

So, through the spark resource manager, all of the links to different applications, logs, etc all use DNS name
ip-xx-xx-xx-xx.company.com:20888/proxy/application_11111 for example
I must manually copy this and cange it to xx.xx.xx.xx:20888/proxy/application_11111 to view this webpage. Is it possible to get the original link working or change all of the links to xx.xx.xx.xx:20888... format?

Related

How to host multiple reactJs web app under one domain in amplify?

I've 2 different reactJs applications which can be deployed independently to aws-amplify. Is there a way I can configure them to the different context paths of the same domain?
www.mydomain.com/app1
www.mydomain.com/app2
Is it possible using amplify?
Right now there is no way to deploy multiple projects with different subdirectories on the same domain using different amplify projects.
But there is a way to deploy multiple projects under the same domain name in a single amplify project instance. If your project is using a monorepo style of structuring the projects. You can read more about it here .
The closest thing I've figured out is adding subdomains before
Let me know if you figure this out because I'm trying to do the same thing
I'll keep you posted as well
Amplify documentation says you can use "200 redirects" (or "Reverse proxy rewrite") to deal with this issue.
cf. https://docs.aws.amazon.com/amplify/latest/userguide/redirects.html
I quote :
Rewrite (200)
200 redirects (rewrites) are intended to show content from the
destination address as if it were served from the original address.
Search engine ranking history continues to apply to the original
address. Redirection occurs on the server-side, so a browser
navigation bar shows the original address after redirection.
So you may want to create 2 redirect rules :
/app1/<*> https://app1.mydomain.com/<*> 200
/app2/<*> https://app2.mydomain.com/<*> 200
(choose any domain/subdomain you want for your app1 and app2)

Keep domain while path forwarding on google domains

I have a google domain for danielokita.com. I currently have an IPFS file and am forwarding the file to the path of the IPFS file, this is the site here
https://danielokita.com. I want to make it so I can keep the domain name but still show the file example:
Go to danielokita.com
Show the IPFS file while while still showing the danielokita.com domain name.
For clarity, I am using path forwarding to display a file, I would like that it so that when I path forward I keep the google domain of danielokita.com instead of showing the IPFS link.
Edit: For those who don't know what an IPFS file is it is a file stored on a distributed file system called IPFS in which the file can be retrieved through an IPFS gateway and the hash of the file. You can see example of the file by clicking on the site. It is just a html file stored on a distributed server and I want to show the result of my page will hiding the hash on the domain name level.
In my first thoughts, a masked redirect would solve the problem, sacrificing the SEO issue, but Google not only doesn't support masked redirect, but also ANAME/ALIAS.
So what I'm going to do is to use OVH and with masked redirection fix it. While I schedule on Amazon Amplify Hosting I will use Github or another IPFS provider like Fleek. This is how I plan to host all my websites for free and easy.

How to host static website of 'multiple pages' on google cloud

I have followed everything from the above link. By following the link .I had hosted my website on google cloud. My static website contains multiple pages(5 pages). In the hosted website I cant find images and other html pages except "index.html" page.
Can anyone please help me by letting me know how to host static website of multiple pages and letting me know how to keep my website secured?, so it would be very helpful for me.
https://codelabs.developers.google.com/codelabs/cloud-webapp-hosting-gcs#5
i think reason behind image is not loading is
you examine the file paths for your files, also be sure that you spelled the name of the image correctly.
refer this link for more details.
Since you didn't provide any more details I can only give you some pointers on what to focus on.
Create a bucket named www.yourdomain.com - www is very important unless you just want to use just yourdomain.com.
Change access permissions so everyone can read it's contents.
Upload your files to the main directory. When someone accesses the site first file that GCP will look for is index.html so make it your home page. Make sure you uploaded all of them. If the images in your page are stored in a folder (img, images etc) then upload that folder with the files inside to your bucket. From your description it looks like either you're missing them or they are in the wrong folder.
Obtain your own SSL certificate or use GCP's managed certificate (free of charge)
Set up a load balancer
Point your domain to your LB's external IP
At that point you're ready to go and your site is up & running.
If this is the first time you're doing it I recommend to start from readin official documentation on how to set up a static website in GCP.
You can access your site without using load balancer to check if it's running correctly by using a link in the format https://storage.googleapis.com/my-bucket/my-object. Have a look at the truobleshooting static websites to get more insight.
Have a look at my other answer covering this topic: https://stackoverflow.com/a/64442826/12257250
Alternatively you can try hosting your site using firebase.

Combine subdomain and folder location into one filter with Google Analytics

I want to create a filter for a profile that looks at 2 things, a subdomain (subdom.mycomp.com) and a folder within the regular domain (www.mycomp.com/industrysolutions/).
Included is a screenshot of the current filter however it only reports on pages in the folder. I'm not sure if I'm on the right track?
Any suggestions?
I don't believe you can have two include filters to a profile. Like you said, the data just stops flowing in, so what I would do is create a filter for the hostname (see below), and then create an advanced segment that looks exclusively at the request URI's you're after.
Include Hostname subdomain\.mycomp\.com
Found this in another post but I needed to make some minor edits to make it work:

Django: how to open local html files directly in the browser with links like href="file:///C:/path/file.html"

I'm making a django app to index my collection of local files (html, text, pdf, ... ) that I keep in diferent partitions and directories so I can search easily based on the name, date, title, etc of the files. It's like a advance locate, the unix utility. It generates a dynamic page with links for the files and in the case of the html files I should click and load the local file in the brower. The generated page contains links like:
Title of local file</li>
The problem is that when I click it does nothing, not even error messages. If I save this generated html page and open it in the brower directly it works fine. I think it doesn't work for security issues but I do not pretend to use it as a web app over the internet but as a local app. I am using the django development server. I know that django can serve static files putting them in a specific directory but this isn't what I need (the files are in multiple locations); I want to load the files in the browser as local files, not through the server. Can this be done?
Is there a way in django to make the "file:///C:/path/file.html" scheme work in the generated dynamic pages?
The problem had nothing to do with django but the browser (in my case firefox 4). Firefox doesn't allow to link to local files from remote sites for security reasons. I have to disable this security check for http://localhost:8000 and it worked. As the change only affects localhost it shouldn't be a security issue.This link explain how to do it:
http://kb.mozillazine.org/Links_to_local_pages_don%27t_work
Basically all you need to do is create a user.js file in your firefox profile folder with this:
user_pref("capability.policy.policynames", "localfilelinks");
user_pref("capability.policy.localfilelinks.sites", "http://localhost:8000");
user_pref("capability.policy.localfilelinks.checkloaduri.enabled", "allAccess");
If you use noscript you also have to change some configuration: NoScript Options ("Advanced -> Trusted -> "Allow local links").
Other browsers may have this security checks so you will have to do diferent changes accoding to the operating system and browser you use.
: is wrong. Use | instead.
Title of local file