Member since
06-27-2016
19
Posts
4
Kudos Received
0
Solutions
02-12-2018
11:59 AM
Hi @dfossouo, at first, thank you for your answer and your informations. No, it doesn't work. We had several open cases at Hortonworks but nobody found a solution for it. We also have this problem with YARN UI and Zeppelin UI. I tried to add the missing files in the rewrite.xml but it's still the same issue. Thanks & Regards, Andreas
... View more
02-17-2017
07:06 AM
I did the curl command from 2.) from one of the cluster nodes (internal). I tested it now from my client pc with the following command: C:\01_Data\curl\src>curl curl -i -k -su <my_user> -X GET "https://<our_knox_host>:8443/gateway/default/static/bootstrap-3.0.2/js/bootstrap.min.js"
Enter host password for user '<my_user>':
HTTP/1.1 404 Not Found
Date: Fri, 17 Feb 2017 07:01:45 GMT
Set-Cookie: JSESSIONID=174cdd7p72bdupmc98his5fcr;Path=/gateway/default;Secure;HttpOnly
Set-Cookie: rememberMe=deleteMe; Path=/gateway/default; Max-Age=0; Expires=Thu, 16-Feb-2017 07:01:46 GMT
Content-Type: text/html; charset=ISO-8859-1
Cache-Control: must-revalidate,no-cache,no-store
Content-Length: 342
Server: Jetty(9.2.15.v20160210)
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>Error 404 Not Found</title>
</head>
<body><h2>HTTP ERROR 404</h2>
<p>Problem accessing /gateway/default/static/bootstrap-3.0.2/js/bootstrap.min.js. Reason:
<pre> Not Found</pre></p><hr><i><small>Powered by Jetty://</small></i><hr/>
</body>
</html> The Oozie UI is the only one which is working, Oozie is installed on the same node like the our knox gateway. Maybe there is a problem by accessing the NameNode host or Ranger host from the knox gateway (knox host).
... View more
02-17-2017
05:54 AM
Hi @Alexandru Anghel, at first, thank you very much for your help!! We have a hardware firewall with DMZ enabled in our cluster. It blocks all ports except 8443 for knox. Do you think this might be a problem? I checked your troubleshooting steps: 1.) Yes, the hostnames and ports are correctly resolved in default.xml 2.) curl on the namenode is working fine curl -i http://our_namenode_host:50070/static/bootstrap-3.0.2/js/bootstrap.min.js
HTTP/1.1 200 OK X-FRAME-OPTIONS: SAMEORIGIN Accept-Ranges: bytes Content-Type: application/x-javascript Content-Length: 27748 Last-Modified: Tue, 29 Nov 2016 20:33:00 GMT Server: Jetty(6.1.26.hwx) 3.) Checked the gateway-audit.log 17/02/17 06:49:42 ||7daf998a-1783-41a3-b3bd-008f588227b3|audit|HDFSUI||||access|uri|/gateway/default/hdfs/|unavailable|Request method: GET
17/02/17 06:49:42 ||7daf998a-1783-41a3-b3bd-008f588227b3|audit|HDFSUI||||access|uri|/gateway/default/hdfs/|success|Response status: 401
17/02/17 06:49:42 ||669c7b17-c633-4dfe-adac-68b88a5c0217|audit|HDFSUI||||access|uri|/gateway/default/hdfs/|unavailable|Request method: GET
17/02/17 06:49:44 ||669c7b17-c633-4dfe-adac-68b88a5c0217|audit|HDFSUI|<my_user>|||authentication|uri|/gateway/default/hdfs/|success|
17/02/17 06:49:45 ||2883703f-494a-4d99-8151-cf27b13e4924|audit|KNOX|<my_user>|||access|uri|/gateway/default/hdfs/static/dataTables.bootstrap.css|success|Response status: 404
17/02/17 06:49:45 ||d0b6cc4d-ed05-4b9a-beae-9b267d4dfc39|audit|KNOX||||access|uri|/gateway/default/hdfs/static/dust-helpers-1.1.1.min.js|unavailable|Request method: GET
17/02/17 06:49:45 ||d0b6cc4d-ed05-4b9a-beae-9b267d4dfc39|audit|KNOX|<my_user>|||authentication|uri|/gateway/default/hdfs/static/bootstrap-3.0.2/js/bootstrap.min.js|success|
17/02/17 06:49:45 ||d0b6cc4d-ed05-4b9a-beae-9b267d4dfc39|audit|KNOX| <my_user> |||authentication|uri|/gateway/default/hdfs/static/bootstrap-3.0.2/js/bootstrap.min.js|success|Groups: [<my_AD_groups>]
4.) I checked <user>@<knox_node>:/usr/hdp/current/knox-server/data/services> ll
total 76
drwxr-xr-x 3 knox knox 4096 Dec 21 12:01 ambari
drwxr-xr-x 3 knox knox 4096 Dec 21 12:01 ambariui
drwxr-xr-x 3 knox knox 4096 Dec 21 12:01 falcon
drwxr-xr-x 3 knox knox 4096 Dec 21 12:01 hbase
drwxr-xr-x 3 knox knox 4096 Dec 21 12:01 hbaseui
drwxr-xr-x 3 knox knox 4096 Dec 21 12:01 hdfsui
drwxr-xr-x 3 knox knox 4096 Dec 21 12:01 hive
drwxr-xr-x 3 knox knox 4096 Dec 21 12:01 jobhistoryui
drwxr-xr-x 3 knox knox 4096 Dec 21 12:01 oozie
drwxr-xr-x 3 knox knox 4096 Dec 21 12:01 oozieui
drwxr-xr-x 3 knox knox 4096 Dec 21 12:01 ranger
drwxr-xr-x 3 knox knox 4096 Dec 21 12:01 rangerui
drwxr-xr-x 3 knox knox 4096 Dec 21 12:01 sparkhistoryui
drwxr-xr-x 3 knox knox 4096 Dec 21 12:01 storm
drwxr-xr-x 3 knox knox 4096 Dec 21 12:01 storm-logviewer
drwxr-xr-x 3 knox knox 4096 Dec 21 12:01 webhcat
drwxr-xr-x 3 knox knox 4096 Dec 21 12:01 webhdfs
drwxr-xr-x 3 knox knox 4096 Dec 21 12:01 yarn-rm
drwxr-xr-x 3 knox knox 4096 Dec 21 12:01 yarnui
5.) I stopped knox, moved the /deployments/default* and started knox again, but still the same problems. Thanks, Andreas
... View more
02-16-2017
10:29 AM
I'm using HDP 2.5.3 as well, with Knox version 0.9.0.2.5 Yes, I have also defined WEBHDFS and RESOURCEMANAGER like the default config in my topology, it's working without any problems: <service> <role>NAMENODE</role> <url>hdfs://{{namenode_host}}:{{namenode_rpc_port}}</url> </service>
<service> <role>JOBTRACKER</role> <url>rpc://{{rm_host}}:{{jt_rpc_port}}</url> </service>
<service> <role>WEBHDFS</role> {{webhdfs_service_urls}} </service>
<service> <role>WEBHCAT</role> <url>http://{{webhcat_server_host}}:{{templeton_port}}/templeton</url> </service>
<service> <role>OOZIE</role> <url>http://{{oozie_server_host}}:{{oozie_server_port}}/oozie</url> </service>
<service> <role>WEBHBASE</role> <url>http://{{hbase_master_host}}:{{hbase_master_port}}</url> </service>
<service> <role>HIVE</role> <url>http://{{hive_server_host}}:{{hive_http_port}}/{{hive_http_path}}</url> </service>
<service> <role>RESOURCEMANAGER</role> <url>http://{{rm_host}}:{{rm_port}}/ws</url> </service> I see the same 404s in the gateway-audit.log for example: access|uri|/gateway/default/hdfs/static/bootstrap-3.0.2/js/bootstrap.min.js|success|Response status: 404
... View more
02-16-2017
09:36 AM
NameNode UI:
... View more
02-16-2017
09:30 AM
Thanks for your fast answer. I already tried it with a / at the end, I know this is a known bug in Oozie UI mapping.. I also replaced the service.xml and rewrite.xml with both github .xml's. After a Knox restart, the problems are still the same... My URLs: https://<our-knox-host>:8443/gateway/default/yarn/ https://<our-knox-host>:8443/gateway/default/hdfs/ Example call for Oozie (it's working without any problems): https://<our-knox-host>:8443/gateway/default/oozie/
... View more
02-16-2017
09:01 AM
2 Kudos
I would like to map the ResourceManager Web UI with Knox. I've set up the topology like: <service> <role>YARNUI</role> <url>http://{{rm_host}}:8088/</url> </service>
<service> <role>HDFSUI</role> <url>http://{{namenode_host}}:50070/</url> </service> But the browser can't load the .css and .javascript from RM UI.
"This page will not function without javascript enabled. Please enable javascript on your browser." I'm using Google Chrome but there are the same problems with Internet Explorer. JavaScript is working and RM UI directly is working as well.
Developer Tool from Chrome: Failed to load resource: the server responded with a status of 404 (Not Found) Same Problems with NameNode UI. Can somebody help me please, or are there known problems? Thanks,
Andreas
... View more
Labels:
- Labels:
-
Apache Hadoop
-
Apache Knox
-
Cloudera Manager
10-06-2016
12:31 PM
That's pity... 😞
... View more
08-03-2016
06:54 AM
Thank you for your fast & good answer. I will try it out, and post my experience after that.
... View more
08-03-2016
06:32 AM
Is it possible to install Hue on a separate Node (VM), which is not a part of the HDP Cluster? I just need to configure hue.ini with the right Server Adresses and Ports from the cluster right?
... View more
Labels:
- Labels:
-
Cloudera Hue