Member since
02-27-2017
4
Posts
0
Kudos Received
0
Solutions
03-02-2017
04:14 PM
@sumit gupta. I setup a new sandbox, the default.xml is back, and follow your instruction of modifying the port, everything goes well. So thanks very much.
... View more
03-01-2017
02:54 AM
I enabled the log4j.logger.org.apache.http.wire=DEBUG, but it seems that something wrote into the gateway.log and gateway-audit.log only when I am starting the knox service in Ambari. Anyway, I attached the log files, please have a look on them. I tried with the command: curl -ik -u guest:guest-password -H "Accept: text/xml" -X GET 'https://localhost:8443/gateway/sandbox/hbase', but the result is same. There is no default.xml in topology folder. I manually make a copy from sandbox.xml, and try again with "default" in the curl command, the result is same. I paste the sandbox-version output as below: Sandbox information:
Created on: 25_10_2016_08_11_26 for
Hadoop stack version: Hadoop 2.7.3.2.5.0.0-1245
Ambari Version: 2.4.0.0-1225
Ambari Hash: 59175b7aa1ddb74b85551c632e3ce42fed8f0c85
Ambari build: Release : 1225
Java version: 1.8.0_111
OS Version: CentOS release 6.8 (Final) I just import the sandbox vm, and power it. Then I start HBase service, Knox service, turn off the maintenance mode on them and start Demo LDAP. Then try the curl command, and meet the issue. Did I miss something need to do? Thanks.
... View more
02-28-2017
01:11 AM
There is no output to /var/log/knox/gateway.log file when executing the problem curl command. And in I checked the HBase URL in /usr/hdp/2.5.0.0-1245/etc/knox/conf/topologies/sandbox.xml, it seems right. In file, it contains the following entry: <service> <role>WEBHBASE</role> <url>http://localhost:60080</url> </service> Did I check with right files? Thanks for your reply.
... View more
02-27-2017
08:45 AM
In HDP sandbox, I started the hbase rest daemon at 60080. It's OK to get table list by:
curl http://localhost:60080
but when I try it through knox gateway as below:
curl -ik -u guest:guest-password -H "Accept: text/xml" -X GET 'https://localhost:8443/gateway/default/hbase'
it returns the message instead of tables:
<body>
<div id="loading">...Loading...</div>
<div id="wrapper">
<!-- ApplicationView -->
</div>
<footer>
<div>
<a href="http://www.apache.org/licenses/LICENSE-2.0" target="_blank">Licensed under the Apache License, Version 2.0</a>.<br>
<a href="/licenses/NOTICE.txt" target="_blank">See third-party tools/resources that Ambari uses and their respective authors</a>
</div>
</footer>
</body> One point to mention is it's OK to list the directory of HDFS through knox gateway: curl -iku guest:guest-password -X GET 'https://localhost:8443/gateway/default/webhdfs/v1/?op=LISTSTATUS'
... View more
Labels:
- Labels:
-
Apache HBase
-
Apache Knox