Created 12-07-2016 10:41 AM
Hello
I have knox installed in my HDP cluster. I am not sure how i can configure it. I want to secure the web requests sent to services like webhdfs and ranger.
i have included this in my topology but im not sure how i can use the gateway or what other configurations are missing
<service>
<role>WEBHDFS</role>
<url>https://[HOSTNAME]:50470/webhdfs</url>
</service>
Created 12-07-2016 11:05 AM
you can access webhdfs using this url :
https://{gateway-host}:{gateway-port}/{gateway-path}/{cluster-name}/webhdfs |
for more info you can refer to https://knox.apache.org/books/knox-0-4-0/knox-0-4-0.html#WebHDFS
and are you facing any issue after changing the topology you mentioned in your question ?
Created 12-08-2016 08:59 AM
i have tried the link you provided, this is the error i am getting
Problem accessing /gateway/HDPBei/webhdfs. Reason:
Not Found
Created 12-08-2016 09:25 AM
this is the full URL i used
https://hostname:8443/gateway/cluster-name/webhdfs/data/v1/{Directory path}?op=ListStatus
Created 12-08-2016 10:53 AM
I have fixed the gateway path in the URL and now it is asking for a username and password. which account would it be asking for?
Created 12-12-2016 04:45 PM
can you try something like guest:guest-password or admin:admin-password ?
Created 09-22-2017 08:19 AM
I also want to know the username and password
Created 09-20-2017 07:58 AM
i don't know the mean about gateway-path and cluster-name
Created 09-20-2017 06:31 PM
gateway-path is defined in conf/gateway-site.xml (gateway.path property), and cluster-name is actually the name of the Knox topology (name of the topology.xml file).
The default knox.path property value is gateway, and if the topology file is named mytopology.xml, the cluster-name is mytopology.
So, putting them together:
http://hostname:8443/gateway/mytopology/webhdfs/v1/?op=LISTSTATUS
Created 09-21-2017 04:24 AM
I would like to know how to see the knox page but I have been prompted after the input url: unable to visit this site hope you can help me