Member since
04-22-2016
931
Posts
46
Kudos Received
26
Solutions
My Accepted Solutions
Title | Views | Posted |
---|---|---|
1159 | 10-11-2018 01:38 AM | |
1559 | 09-26-2018 02:24 AM | |
1437 | 06-29-2018 02:35 PM | |
1943 | 06-29-2018 02:34 PM | |
4616 | 06-20-2018 04:30 PM |
06-29-2018
06:08 PM
he doesn't like the syntax of this # curl --negotiate -u http://hadoop1:17001
curl: no URL specified!
curl: try 'curl --help' or 'curl --manual' for more information
... View more
06-29-2018
04:49 PM
please see above , this is from the hortonworks document , how they are able to get the right output without any xml parsing ?
... View more
06-29-2018
04:02 PM
I am getting the proper results .. the tables are there in the xml list "UFM" "WZ" , how can I make them appear in normal format like ? UFM WZ
... View more
06-29-2018
03:28 PM
ok I will use negotiate ..can you tell why I am not seeing the right formatted output of table names but I see "<" ">" around them ? <?xml version="1.0" encoding="UTF-8" standalone="yes"?><TableList><table name="UFM"/><table name="WZ"/><table name="state_code"/></TableList>[root@hadoop1 ~]#
... View more
06-29-2018
03:23 PM
also this command works # curl --negotiate -i -u : -X GET -H "Accept: text/xml" http://$(hostname):17001/
HTTP/1.1 401 Authentication required
WWW-Authenticate: Negotiate
Set-Cookie: hadoop.auth=; Path=/; HttpOnly
Content-Type: text/html; charset=iso-8859-1
Cache-Control: must-revalidate,no-cache,no-store
Content-Length: 1393
HTTP/1.1 200 OK
Set-Cookie: hadoop.auth="u=hbase&p=hbase/hadoop1.xxx.com@XXX.US&t=kerberos&e=1530321348642&s=D797P7EN3+vVCB0S2WblChieQrs="; Path=/; HttpOnly
Content-Type: text/xml
Cache-Control: no-cache
Content-Length: 141
<?xml version="1.0" encoding="UTF-8" standalone="yes"?><TableList><table name="UFM"/><table name="WZ"/><table name="state_code"/></TableList>[root@hadoop1 ~]#
but this command fails # curl -H "Accept: text/xml" http://$(hostname):17001/
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
<title>Error 401 Authentication required</title>
</head>
<body><h2>HTTP ERROR 401</h2>
<p>Problem accessing /. Reason:
<pre> Authentication required</pre></p><hr /><i><small>Powered by Jetty://</small></i><br/>
<br/>
... View more
06-29-2018
02:56 PM
my rest server is up and running and the following command works [root@hadoop1 ~]# curl --negotiate -u : 'http://hadoop1:17001/status/cluster'
1 live servers, 0 dead servers, 6.0000 average load
1 live servers
hadoop5.xxx.com:16020 1530282635984
requests=0, regions=6
heapSizeMB=145
maxHeapSizeMB=2007
but the other curl commands are failing with authentication error . I have a Kerberos ticket acquired from /etc/security/keytabs/hbase.service.keytab [root@hadoop1 ~]# curl -H "Accept: text/xml" http://hadoop1:17001/version
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
<title>Error 401 Authentication required</title>
</head>
<body><h2>HTTP ERROR 401</h2>
<p>Problem accessing /version. Reason:
<pre> Authentication required</pre></p><hr /><i><small>Powered by Jetty://</small></i><br/>
<br/>
... View more
Labels:
06-29-2018
02:35 PM
resolved .. the following missing url was causing the issue hbase.rest.authentication.kerberos.principal=HTTP/_HOST@
... View more
06-29-2018
02:34 PM
found out .. was missing this parameter in hbase config hbase.rest.authentication.kerberos.principal=HTTP/_HOST@
... View more
06-29-2018
01:57 PM
but if I use this command then it starts ? [hbase@hadoop1 ~]$ /usr/hdp/current/hbase-master/bin/hbase-daemon.sh start rest
starting rest, logging to /var/log/hbase/hbase-hbase-rest-hadoop1.out
[hbase@hadoop1 ~]$
[hbase@hadoop1 ~]$
[hbase@hadoop1 ~]$ netstat -a | grep 17000
tcp 0 0 *:17000 *:* LISTEN
[hbase
... View more
06-29-2018
01:47 PM
which principal he is complaining about ? [root@hadoop1 ~]# kinit -kt /etc/security/keytabs/hbase.service.keytab hbase/hadoop1.xxx.com@XXX.XXX.US
[root@hadoop1 ~]#
[root@hadoop1 ~]# hbase rest start
2018-06-29 09:27:44,074 INFO [main] util.VersionInfo: HBase 1.1.2.2.6.1.0-129
2018-06-29 09:27:44,075 INFO [main] util.VersionInfo: Source code repository git://c66-slave-20176e25-3/grid/0/jenkins/workspace/HDP-parallel-centos6/SOURCES/hbase revision=718c773662346de98a8ce6fd3b5f64e279cb87d4
2018-06-29 09:27:44,075 INFO [main] util.VersionInfo: Compiled by jenkins on Wed May 31 03:27:31 UTC 2017
2018-06-29 09:27:44,075 INFO [main] util.VersionInfo: From source with checksum 5325f6ee9be058d73a605fd20a4351bb
2018-06-29 09:27:44,933 INFO [main] security.UserGroupInformation: Login successful for user hbase/hadoop1.xxx.com@XXX.XXX.US using keytab file /etc/security/keytabs/hbase.service.keytab
2018-06-29 09:27:44,983 INFO [main] impl.MetricsConfig: loaded properties from hadoop-metrics2-hbase.properties
2018-06-29 09:27:45,245 INFO [main] timeline.HadoopTimelineMetricsSink: Initializing Timeline metrics sink.
2018-06-29 09:27:45,246 INFO [main] timeline.HadoopTimelineMetricsSink: Identified hostname = hadoop1.xxx.com, serviceName = hbase
2018-06-29 09:27:45,319 INFO [main] availability.MetricSinkWriteShardHostnameHashingStrategy: Calculated collector shard hadoop3.xxx.com based on hostname: hadoop1.xxx.com
2018-06-29 09:27:45,319 INFO [main] timeline.HadoopTimelineMetricsSink: Collector Uri: http://hadoop3.xxx.com:6188/ws/v1/timeline/metrics
2018-06-29 09:27:45,319 INFO [main] timeline.HadoopTimelineMetricsSink: Container Metrics Uri: http://hadoop3.xxx.com:6188/ws/v1/timeline/containermetrics
2018-06-29 09:27:45,328 INFO [main] impl.MetricsSinkAdapter: Sink timeline started
2018-06-29 09:27:45,381 INFO [main] impl.MetricsSystemImpl: Scheduled snapshot period at 10 second(s).
2018-06-29 09:27:45,381 INFO [main] impl.MetricsSystemImpl: HBase metrics system started
2018-06-29 09:27:45,419 INFO [main] mortbay.log: Logging to org.slf4j.impl.Log4jLoggerAdapter(org.mortbay.log) via org.mortbay.log.Slf4jLog
2018-06-29 09:27:45,456 INFO [main] http.HttpRequestLog: Http request log for http.requests.rest is not defined
2018-06-29 09:27:45,461 INFO [main] http.HttpServer: Added global filter 'safety' (class=org.apache.hadoop.hbase.http.HttpServer$QuotingInputFilter)
2018-06-29 09:27:45,462 INFO [main] http.HttpServer: Added global filter 'clickjackingprevention' (class=org.apache.hadoop.hbase.http.ClickjackingPreventionFilter)
2018-06-29 09:27:45,463 INFO [main] http.HttpServer: Added filter static_user_filter (class=org.apache.hadoop.hbase.http.lib.StaticUserWebFilter$StaticUserFilter) to context rest
2018-06-29 09:27:45,463 INFO [main] http.HttpServer: Added filter static_user_filter (class=org.apache.hadoop.hbase.http.lib.StaticUserWebFilter$StaticUserFilter) to context static
2018-06-29 09:27:45,464 INFO [main] http.HttpServer: Added filter static_user_filter (class=org.apache.hadoop.hbase.http.lib.StaticUserWebFilter$StaticUserFilter) to context logs
2018-06-29 09:27:45,470 INFO [main] http.HttpServer: Jetty bound to port 17050
2018-06-29 09:27:45,470 INFO [main] mortbay.log: jetty-6.1.26.hwx
2018-06-29 09:27:45,719 INFO [main] mortbay.log: Started SelectChannelConnector@0.0.0.0:17050
2018-06-29 09:27:45,719 INFO [main] mortbay.log: jetty-6.1.26.hwx
2018-06-29 09:27:45,758 WARN [main] mortbay.log: failed AuthenticationFilter: javax.servlet.ServletException: javax.servlet.ServletException: Principal not defined in configuration
2018-06-29 09:27:45,758 WARN [main] mortbay.log: failed org.mortbay.jetty.servlet.Context@a4b2d8f{/,null}: javax.servlet.ServletException: javax.servlet.ServletException: Principal not defined in configuration
2018-06-29 09:27:45,759 WARN [main] mortbay.log: Error starting handlers
javax.servlet.ServletException: javax.servlet.ServletException: Principal not defined in configuration
at org.apache.hadoop.security.authentication.server.KerberosAuthenticationHandler.init(KerberosAuthenticationHandler.java:300)
at org.apache.hadoop.security.authentication.server.AuthenticationFilter.initializeAuthHandler(AuthenticationFilter.java:247)
at org.apache.hadoop.security.authentication.server.AuthenticationFilter.init(AuthenticationFilter.java:233)
at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:97)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:713)
at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:518)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
at org.mortbay.jetty.Server.doStart(Server.java:224)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at org.apache.hadoop.hbase.rest.RESTServer.main(RESTServer.java:310)
Caused by: javax.servlet.ServletException: Principal not defined in configuration
at org.apache.hadoop.security.authentication.server.KerberosAuthenticationHandler.init(KerberosAuthenticationHandler.java:233)
... 12 more
2018-06-29 09:27:45,760 WARN [main] mortbay.log: Nested in javax.servlet.ServletException: javax.servlet.ServletException: Principal not defined in configuration:
javax.servlet.ServletException: Principal not defined in configuration
at org.apache.hadoop.security.authentication.server.KerberosAuthenticationHandler.init(KerberosAuthenticationHandler.java:233)
at org.apache.hadoop.security.authentication.server.AuthenticationFilter.initializeAuthHandler(AuthenticationFilter.java:247)
at org.apache.hadoop.security.authentication.server.AuthenticationFilter.init(AuthenticationFilter.java:233)
at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:97)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:713)
at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:518)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
at org.mortbay.jetty.Server.doStart(Server.java:224)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at org.apache.hadoop.hbase.rest.RESTServer.main(RESTServer.java:310)
2018-06-29 09:27:45,761 INFO [main] mortbay.log: Started SelectChannelConnector@0.0.0.0:17000
... View more
Labels: