Support Questions

Find answers, ask questions, and share your expertise

Hbase shell is giving error - ""ERROR: org.apache.hadoop.hbase.ipc.ServerNotRunningYetException: Server is not running yet""

avatar
Contributor

Dears,

I am getting below error while running "list" command in hbase shell.

""ERROR: org.apache.hadoop.hbase.ipc.ServerNotRunningYetException: Server is not running yet""

Below is the complete error,

""hbase(main):007:0> list

TABLE

ERROR: org.apache.hadoop.hbase.ipc.ServerNotRunningYetException: Server is not running yet

at org.apache.hadoop.hbase.master.HMaster.checkServiceStarted(HMaster.java:2725)

at org.apache.hadoop.hbase.master.MasterRpcServices.isMasterRunning(MasterRpcServices.java:974)

at org.apache.hadoop.hbase.protobuf.generated.MasterProtos$MasterService$2.callBlockingMethod(MasterProtos.java:59928)

at org.apache.hadoop.hbase.ipc.RpcServer.call(RpcServer.java:2150)

at org.apache.hadoop.hbase.ipc.CallRunner.run(CallRunner.java:112)

at org.apache.hadoop.hbase.ipc.RpcExecutor$Handler.run(RpcExecutor.java:187)

at org.apache.hadoop.hbase.ipc.RpcExecutor$Handler.run(RpcExecutor.java:167)

Here is some help for this command:

List all tables in hbase. Optional regular expression parameter could be used to filter the output. Examples:

hbase> list

hbase> list 'abc.*'

hbase> list 'ns:abc.*'

hbase> list 'ns:.*'


hbase(main):008:0>

Note: All the service & component in Ambari is up & running without any alert.

HDP Version: 2.6.3.0

Ambari version: 2.6.2.0

Any help will be highly appreciated

Regards

Ayush

4 REPLIES 4

avatar
Master Mentor

@Ayush Garg

Can you just restart the hbase by selecting hbase-->Service Actions---> Restart all you could be having dead process,can you check if you have a PID

cat /var/run/hbase/hbase-hbase-master.pid

HTH


avatar
Super Guru

You should look at the HBase Master log to understand why it has not yet become initialized on its own. Additionally, you may have to look at a JStack of the HBase Master process to help understand why it's stuck, if that's now obvious from the log itself.

avatar
New Contributor

Getting following errors while import.......................

hduser@Neha-PC:/usr/local/hbase-1.4.9$ bin/hbase org.apache.hadoop.hbase.mapreduce.ImportTsv -Dimporttsv.separator=',' -Dimporttsv.columns='HBASE_ROW_KEY,cf:ename,cf:designation,cf:manager,cf:hire_date,cf:sal,cf:deptno' emp_data /hbase/data/emp_data.csv
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/usr/local/hbase-1.4.9/lib/slf4j-log4j12-1.7.10.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/usr/local/hadoop-2.9.2/share/hadoop/common/lib/slf4j-log4j12-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
2019-01-29 17:35:39,621 INFO [main] zookeeper.RecoverableZooKeeper: Process identifier=hconnection-0xc0c2f8d connecting to ZooKeeper ensemble=localhost:2184
2019-01-29 17:35:39,629 INFO [main] zookeeper.ZooKeeper: Client environment:zookeeper.version=3.4.10-39d3a4f269333c922ed3db283be479f9deacaa0f, built on 03/23/2017 10:13 GMT
2019-01-29 17:35:39,629 INFO [main] zookeeper.ZooKeeper: Client environment:host.name=localhost
2019-01-29 17:35:39,629 INFO [main] zookeeper.ZooKeeper: Client environment:java.version=1.8.0_191
2019-01-29 17:35:39,629 INFO [main] zookeeper.ZooKeeper: Client environment:java.vendor=Oracle Corporation
2019-01-29 17:35:39,629 INFO [main] zookeeper.ZooKeeper: Client environment:java.home=/usr/lib/jvm/java-8-openjdk-amd64/jre
2019-01-29 17:35:39,630 INFO [main] zookeeper.ZooKeeper: hadoop/mapreduce/lib/commons-io-2.4.jar:/usr/local/hadoop-2.9.2/share/hadoop/mapreduce/lib/paranamer-2.3.jar:/usr/local/hadoop-2.9.2/share/hadoop/mapreduce/lib/asm-3.2.jar:/usr/local/hadoop-2.9.2/share/hadoop/mapreduce/hadoop-mapreduce-client-app-2.9.2.jar:/usr/local/hadoop-2.9.2/share/hadoop/mapreduce/hadoop-mapreduce-client-jobclient-2.9.2.jar:/usr/local/hadoop-2.9.2/share/hadoop/mapreduce/hadoop-mapreduce-client-shuffle-2.9.2.jar:/usr/local/hadoop-2.9.2/share/hadoop/mapreduce/hadoop-mapreduce-client-common-2.9.2.jar:/usr/local/hadoop-2.9.2/share/hadoop/mapreduce/hadoop-mapreduce-client-hs-2.9.2.jar:/usr/local/hadoop-2.9.2/share/hadoop/mapreduce/hadoop-mapreduce-examples-2.9.2.jar:/usr/local/hadoop-2.9.2/share/hadoop/mapreduce/hadoop-mapreduce-client-jobclient-2.9.2-tests.jar:/usr/local/hadoop-2.9.2/share/hadoop/mapreduce/hadoop-mapreduce-client-core-2.9.2.jar:/usr/local/hadoop-2.9.2/share/hadoop/mapreduce/hadoop-mapreduce-client-hs-plugins-2.9.2.jar:/contrib/capacity-scheduler/*.jar
2019-01-29 17:35:39,630 INFO [main] zookeeper.ZooKeeper: Client environment:java.library.path=/usr/local/hadoop-2.9.2/lib/native
2019-01-29 17:35:39,630 INFO [main] zookeeper.ZooKeeper: Client environment:java.io.tmpdir=/tmp
2019-01-29 17:35:39,630 INFO [main] zookeeper.ZooKeeper: Client environment:java.compiler=<NA>
2019-01-29 17:35:39,630 INFO [main] zookeeper.ZooKeeper: Client environment:os.name=Linux
2019-01-29 17:35:39,630 INFO [main] zookeeper.ZooKeeper: Client environment:os.arch=amd64
2019-01-29 17:35:39,630 INFO [main] zookeeper.ZooKeeper: Client environment:os.version=4.15.0-43-generic
2019-01-29 17:35:39,630 INFO [main] zookeeper.ZooKeeper: Client environment:user.name=hduser
2019-01-29 17:35:39,630 INFO [main] zookeeper.ZooKeeper: Client environment:user.home=/home/hduser
2019-01-29 17:35:39,630 INFO [main] zookeeper.ZooKeeper: Client environment:user.dir=/usr/local/hbase-1.4.9
2019-01-29 17:35:39,631 INFO [main] zookeeper.ZooKeeper: Initiating client connection, connectString=localhost:2184 sessionTimeout=90000 watcher=org.apache.hadoop.hbase.zookeeper.PendingWatcher@15ca7889
2019-01-29 17:35:39,659 INFO [main-SendThread(localhost:2184)] zookeeper.ClientCnxn: Opening socket connection to server localhost/127.0.0.1:2184. Will not attempt to authenticate using SASL (unknown error)
2019-01-29 17:35:39,669 INFO [main-SendThread(localhost:2184)] zookeeper.ClientCnxn: Socket connection established to localhost/127.0.0.1:2184, initiating session
2019-01-29 17:35:39,687 INFO [main-SendThread(localhost:2184)] zookeeper.ClientCnxn: Session establishment complete on server localhost/127.0.0.1:2184, sessionid = 0x168991f2b14000d, negotiated timeout = 90000
2019-01-29 17:35:41,252 ERROR [main] mapreduce.ImportTsv: Table 'emp_data' does not exist.
2019-01-29 17:35:41,252 INFO [main] client.ConnectionManager$HConnectionImplementation: Closing zookeeper sessionid=0x168991f2b14000d
2019-01-29 17:35:41,262 INFO [main] zookeeper.ZooKeeper: Session: 0x168991f2b14000d closed
Exception in thread "main" org.apache.hadoop.hbase.TableNotFoundException: Table 'emp_data' does not exist.
at org.apache.hadoop.hbase.mapreduce.ImportTsv.createSubmittableJob(ImportTsv.java:568)
at org.apache.hadoop.hbase.mapreduce.ImportTsv.run(ImportTsv.java:781)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:84)
at org.apache.hadoop.hbase.mapreduce.ImportTsv.main(ImportTsv.java:794)
2019-01-29 17:35:41,267 INFO [main-EventThread] zookeeper.ClientCnxn: EventThread shut down for session: 0x168991f2b14000d

avatar
Contributor

Hi Neha,

As per the log it shows that 'emp _data' table doesn't exist.

""2019-01-29 17:35:41,252 ERROR [main] mapreduce.ImportTsv: Table 'emp_data' does not exist.""

But still Can you provide below info:

1. Version of Ambari

2. All the components of HBase and Zookeeper are running without any error?

3. Is this a kerberos enabled cluster?