Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

cant start rest server

avatar
Super Collaborator

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


1 ACCEPTED SOLUTION

avatar
Super Collaborator

resolved .. the following missing url was causing the issue

hbase.rest.authentication.kerberos.principal=HTTP/_HOST@

View solution in original post

2 REPLIES 2

avatar
Super Collaborator

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

avatar
Super Collaborator

resolved .. the following missing url was causing the issue

hbase.rest.authentication.kerberos.principal=HTTP/_HOST@