Member since
10-28-2016
392
Posts
7
Kudos Received
20
Solutions
My Accepted Solutions
Title | Views | Posted |
---|---|---|
2839 | 03-12-2018 02:28 AM | |
4388 | 12-18-2017 11:41 PM | |
3148 | 07-17-2017 07:01 PM | |
2175 | 07-13-2017 07:20 PM | |
6613 | 07-12-2017 08:31 PM |
12-18-2016
06:22 PM
Hi All, I've HDP 2.4 & i'm trying to put data into HBase table using Java API,
it gives error shown below, Any ideas pls let me know.
Code used to add data to the HBase table (java file attached) ->
accessobjectjava.txt
public Put mkPut(User u){
Put p = new Put(Bytes.toBytes(u.user));
p.add(INFO_FAMILY, USER_COL, Bytes.toBytes(u.user));
p.add(INFO_FAMILY, NAME_COL, Bytes.toBytes(u.name));
p.add(INFO_FAMILY, EMAIL_COL, Bytes.toBytes(u.email));
return p;
} public void addUser(String user, String name, String email) throws IOException{
HTableInterface users = connection.getTable(TABLE_NAME);
Put p = mkPut(new User(user,name,email));
users.put(p);
users.close();
}
---------------------------------ERROR ON CONSOLE-------------------------------------------------------- [root@sandbox ~]# java hbase/Exercise2/HBaseTester add kim123 kim kim@gmail.com
log4j:WARN No appenders could be found for logger (org.apache.hadoop.util.Shell).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
Adding user...
in add user
in add user, users users;hconnection-0x43cdebe p {"totalColumns":3,"families":{"info":[{"timestamp":9223372036854775807,"tag":[],"qualifier":"user","vlen":6},{"timestamp":9223372036854775807,"tag":[],"qualifier":"name","vlen":3},{"timestamp":9223372036854775807,"tag":[],"qualifier":"email","vlen":13}]},"row":"kim123"}
java.lang.RuntimeException: java.lang.NullPointerException
at org.apache.hadoop.hbase.client.RpcRetryingCaller.callWithoutRetries(RpcRetryingCaller.java:208)
at org.apache.hadoop.hbase.client.ClientSmallReversedScanner.loadCache(ClientSmallReversedScanner.java:211)
at org.apache.hadoop.hbase.client.ClientSmallReversedScanner.next(ClientSmallReversedScanner.java:185)
at org.apache.hadoop.hbase.client.ConnectionManager$HConnectionImplementation.locateRegionInMeta(ConnectionManager.java:1256)
at org.apache.hadoop.hbase.client.ConnectionManager$HConnectionImplementation.locateRegion(ConnectionManager.java:1162)
at org.apache.hadoop.hbase.client.AsyncProcess.submit(AsyncProcess.java:370)
at org.apache.hadoop.hbase.client.AsyncProcess.submit(AsyncProcess.java:321)
at org.apache.hadoop.hbase.client.BufferedMutatorImpl.backgroundFlushCommits(BufferedMutatorImpl.java:206)
at org.apache.hadoop.hbase.client.BufferedMutatorImpl.flush(BufferedMutatorImpl.java:183)
at org.apache.hadoop.hbase.client.HTable.flushCommits(HTable.java:1449)
at org.apache.hadoop.hbase.client.HTable.put(HTable.java:1040)
at hbase.Exercise2.AccessObject.addUser(AccessObject.java:93)
at hbase.Exercise2.HBaseTester.main(HBaseTester.java:27)
Caused by: java.lang.NullPointerException
at org.apache.hadoop.hbase.zookeeper.ZooKeeperWatcher.getMetaReplicaNodes(ZooKeeperWatcher.java:399)
at org.apache.hadoop.hbase.zookeeper.MetaTableLocator.blockUntilAvailable(MetaTableLocator.java:552)
at org.apache.hadoop.hbase.client.ZooKeeperRegistry.getMetaRegionLocation(ZooKeeperRegistry.java:61)
at org.apache.hadoop.hbase.client.ConnectionManager$HConnectionImplementation.locateMeta(ConnectionManager.java:1192)
at org.apache.hadoop.hbase.client.ConnectionManager$HConnectionImplementation.locateRegion(ConnectionManager.java:1159)
at org.apache.hadoop.hbase.client.RpcRetryingCallerWithReadReplicas.getRegionLocations(RpcRetryingCallerWithReadReplicas.java:300)
at org.apache.hadoop.hbase.client.ScannerCallableWithReplicas.call(ScannerCallableWithReplicas.java:151)
at org.apache.hadoop.hbase.client.ScannerCallableWithReplicas.call(ScannerCallableWithReplicas.java:59)
at org.apache.hadoop.hbase.client.RpcRetryingCaller.callWithoutRetries(RpcRetryingCaller.java:200)
... 12 more
Exception in thread "main" java.lang.RuntimeException: java.lang.NullPointerException
at org.apache.hadoop.hbase.client.RpcRetryingCaller.callWithoutRetries(RpcRetryingCaller.java:208)
at org.apache.hadoop.hbase.client.ClientSmallReversedScanner.loadCache(ClientSmallReversedScanner.java:211)
at org.apache.hadoop.hbase.client.ClientSmallReversedScanner.next(ClientSmallReversedScanner.java:185)
at org.apache.hadoop.hbase.client.ConnectionManager$HConnectionImplementation.locateRegionInMeta(ConnectionManager.java:1256)
at org.apache.hadoop.hbase.client.ConnectionManager$HConnectionImplementation.locateRegion(ConnectionManager.java:1162)
at org.apache.hadoop.hbase.client.AsyncProcess.submit(AsyncProcess.java:370)
at org.apache.hadoop.hbase.client.AsyncProcess.submit(AsyncProcess.java:321)
at org.apache.hadoop.hbase.client.BufferedMutatorImpl.backgroundFlushCommits(BufferedMutatorImpl.java:206)
at org.apache.hadoop.hbase.client.BufferedMutatorImpl.flush(BufferedMutatorImpl.java:183)
at org.apache.hadoop.hbase.client.HTable.flushCommits(HTable.java:1449)
at org.apache.hadoop.hbase.client.HTable.close(HTable.java:1485)
at hbase.Exercise2.AccessObject.addUser(AccessObject.java:98)
at hbase.Exercise2.HBaseTester.main(HBaseTester.java:27)
Caused by: java.lang.NullPointerException
at org.apache.hadoop.hbase.zookeeper.ZooKeeperWatcher.getMetaReplicaNodes(ZooKeeperWatcher.java:399)
at org.apache.hadoop.hbase.zookeeper.MetaTableLocator.blockUntilAvailable(MetaTableLocator.java:552)
at org.apache.hadoop.hbase.client.ZooKeeperRegistry.getMetaRegionLocation(ZooKeeperRegistry.java:61)
at org.apache.hadoop.hbase.client.ConnectionManager$HConnectionImplementation.locateMeta(ConnectionManager.java:1192)
at org.apache.hadoop.hbase.client.ConnectionManager$HConnectionImplementation.locateRegion(ConnectionManager.java:1159)
at org.apache.hadoop.hbase.client.RpcRetryingCallerWithReadReplicas.getRegionLocations(RpcRetryingCallerWithReadReplicas.java:300)
at org.apache.hadoop.hbase.client.ScannerCallableWithReplicas.call(ScannerCallableWithReplicas.java:151)
at org.apache.hadoop.hbase.client.ScannerCallableWithReplicas.call(ScannerCallableWithReplicas.java:59)
at org.apache.hadoop.hbase.client.RpcRetryingCaller.callWithoutRetries(RpcRetryingCaller.java:200)
... 12 more
... View more
Labels:
- Labels:
-
Apache HBase
12-14-2016
02:01 AM
@Hammad Ali Seems like i was able to fix the installation issue, however on starting OpenTSDB, the following error was thrown. Any ideas ? ------------------------ 2016-12-14 00:51:16,030 INFO [AsyncHBase I/O Worker #3] HBaseClient: Channel [id: 0x0d57d67b, /10.0.2.15:37370 😆 /10.0.2.15:16020] is disconnecting: [id: 0x0d57d67b, /10.0.2.15:37370 😆 /10.0.2.15:16020] DISCONNECTED
2016-12-14 00:51:16,032 WARN [AsyncHBase Timer HBaseClient #1-EventThread] HBaseClient: Probe Exists(table="hbase:meta", key=[116, 115, 100, 98, 44, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 58, 65, 115, 121, 110, 99, 72, 66, 97, 115, 101, 126, 112, 114, 111, 98, 101, 126, 60, 59, 95, 60, 44, 58, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 58, 65, 115, 121, 110, 99, 72, 66, 97, 115, 101, 126, 112, 114, 111, 98, 101, 126, 60, 59, 95, 60], family=null, qualifiers=null, attempt=0, region=RegionInfo(table="hbase:meta", region_name="hbase:meta,,1", stop_key="")) failed
org.hbase.async.NonRecoverableException: Too many attempts: Exists(table="hbase:meta", key=[116, 115, 100, 98, 44, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 58, 65, 115, 121, 110, 99, 72, 66, 97, 115, 101, 126, 112, 114, 111, 98, 101, 126, 60, 59, 95, 60, 44, 58, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 58, 65, 115, 121, 110, 99, 72, 66, 97, 115, 101, 126, 112, 114, 111, 98, 101, 126, 60, 59, 95, 60], family=null, qualifiers=null, attempt=11, region=RegionInfo(table="hbase:meta", region_name="hbase:meta,,1", stop_key=""))
at org.hbase.async.HBaseClient.tooManyAttempts(HBaseClient.java:2056) [asynchbase-1.7.2.jar:na]
at org.hbase.async.HBaseClient.sendRpcToRegion(HBaseClient.java:1920) [asynchbase-1.7.2.jar:na]
at org.hbase.async.HBaseClient$1RetryRpc.call(HBaseClient.java:1944) [asynchbase-1.7.2.jar:na]
at org.hbase.async.HBaseClient$1RetryRpc.call(HBaseClient.java:1927) [asynchbase-1.7.2.jar:na]
at com.stumbleupon.async.Deferred.doCall(Deferred.java:1278) [async-1.4.0.jar:na]
at com.stumbleupon.async.Deferred.runCallbacks(Deferred.java:1257) [async-1.4.0.jar:na]
at com.stumbleupon.async.Deferred.callback(Deferred.java:1005) [async-1.4.0.jar:na]
at org.hbase.async.HBaseClient$ZKClient$ZKCallback.processResult(HBaseClient.java:3645) [asynchbase-1.7.2.jar:na]
at org.apache.zookeeper.ClientCnxn$EventThread.processEvent(ClientCnxn.java:558) [zookeeper-3.4.5.jar:3.4.5-1392090]
at org.apache.zookeeper.ClientCnxn$EventThread.run(ClientCnxn.java:495) [zookeeper-3.4.5.jar:3.4.5-1392090]
2016-12-14 00:51:16,033 INFO [AsyncHBase Timer HBaseClient #1-EventThread] HBaseClient: Need to find the .META. region
2016-12-14 00:51:16,037 INFO [AsyncHBase Timer HBaseClient #1-EventThread] ZooKeeper: Session: 0x158fa6cce65008d closed
2016-12-14 00:51:16,037 INFO [AsyncHBase Timer HBaseClient #1-EventThread] ZooKeeper: Initiating client connection, connectString=sandbox.hortonworks.com:2181 sessionTimeout=5000 watcher=org.hbase.async.HBaseClient$ZKClient@6e232ae3
2016-12-14 00:51:16,038 INFO [AsyncHBase Timer HBaseClient #1-SendThread(sandbox.hortonworks.com:2181)] ClientCnxn: Opening socket connection to server sandbox.hortonworks.com/10.0.2.15:2181. Will not attempt to authenticate using SASL (unknown error)
2016-12-14 00:51:16,040 INFO [AsyncHBase Timer HBaseClient #1-SendThread(sandbox.hortonworks.com:2181)] ClientCnxn: Socket connection established to sandbox.hortonworks.com/10.0.2.15:2181, initiating session
2016-12-14 00:51:16,042 INFO [AsyncHBase Timer HBaseClient #1-SendThread(sandbox.hortonworks.com:2181)] ClientCnxn: Session establishment complete on server sandbox.hortonworks.com/10.0.2.15:2181, sessionid = 0x158fa6cce65008e, negotiated timeout = 5000
2016-12-14 00:51:16,043 INFO [AsyncHBase Timer HBaseClient #1-EventThread] ClientCnxn: EventThread shut down
2016-12-14 00:51:16,048 INFO [AsyncHBase Timer HBaseClient #1-EventThread] HBaseClient: Connecting to .META. region @ 10.0.2.15:16020
2016-12-14 00:51:16,051 INFO [AsyncHBase I/O Worker #4] HBaseClient: Channel [id: 0xf2cf1dfe, /10.0.2.15:37372 😆 /10.0.2.15:16020] is disconnecting: [id: 0xf2cf1dfe, /10.0.2.15:37372 😆 /10.0.2.15:16020] DISCONNECTED
2016-12-14 00:51:16,052 INFO [AsyncHBase Timer HBaseClient #1-EventThread] HBaseClient: Need to find the .META. region
2016-12-14 00:51:16,055 INFO [AsyncHBase Timer HBaseClient #1-EventThread] ZooKeeper: Session: 0x158fa6cce65008e closed
2016-12-14 00:51:16,055 INFO [AsyncHBase Timer HBaseClient #1-EventThread] ZooKeeper: Initiating client connection, connectString=sandbox.hortonworks.com:2181 sessionTimeout=5000 watcher=org.hbase.async.HBaseClient$ZKClient@6e232ae3
2016-12-14 00:51:16,056 INFO [AsyncHBase Timer HBaseClient #1-SendThread(sandbox.hortonworks.com:2181)] ClientCnxn: Opening socket connection to server sandbox.hortonworks.com/10.0.2.15:2181. Will not attempt to authenticate using SASL (unknown error)
2016-12-14 00:51:16,058 INFO [AsyncHBase Timer HBaseClient #1-SendThread(sandbox.hortonworks.com:2181)] ClientCnxn: Socket connection established to sandbox.hortonworks.com/10.0.2.15:2181, initiating session
2016-12-14 00:51:16,061 INFO [AsyncHBase Timer HBaseClient #1-SendThread(sandbox.hortonworks.com:2181)] ClientCnxn: Session establishment complete on server sandbox.hortonworks.com/10.0.2.15:2181, sessionid = 0x158fa6cce65008f, negotiated timeout = 5000
2016-12-14 00:51:16,061 INFO [AsyncHBase Timer HBaseClient #1-EventThread] ClientCnxn: EventThread shut down
2016-12-14 00:51:16,067 INFO [AsyncHBase Timer HBaseClient #1-EventThread] HBaseClient: Connecting to .META. region @ 10.0.2.15:16020
2016-12-14 00:51:16,069 INFO [AsyncHBase I/O Worker #1] HBaseClient: Channel [id: 0x24f85c35, /10.0.2.15:37374 😆 /10.0.2.15:16020] is disconnecting: [id: 0x24f85c35, /10.0.2.15:37374 😆 /10.0.2.15:16020] DISCONNECTED
2016-12-14 00:51:16,070 INFO [AsyncHBase Timer HBaseClient #1-EventThread] HBaseClient: Need to find the .META. region
2016-12-14 00:51:16,074 INFO [AsyncHBase Timer HBaseClient #1-EventThread] ZooKeeper: Session: 0x158fa6cce65008f closed
2016-12-14 00:51:16,074 INFO [AsyncHBase Timer HBaseClient #1-EventThread] ZooKeeper: Initiating client connection, connectString=sandbox.hortonworks.com:2181 sessionTimeout=5000 watcher=org.hbase.async.HBaseClient$ZKClient@6e232ae3
2016-12-14 00:51:16,075 INFO [AsyncHBase Timer HBaseClient #1-SendThread(sandbox.hortonworks.com:2181)] ClientCnxn: Opening socket connection to server sandbox.hortonworks.com/10.0.2.15:2181. Will not attempt to authenticate using SASL (unknown error)
2016-12-14 00:51:16,078 INFO [AsyncHBase Timer HBaseClient #1-SendThread(sandbox.hortonworks.com:2181)] ClientCnxn: Socket connection established to sandbox.hortonworks.com/10.0.2.15:2181, initiating session
2016-12-14 00:51:16,080 INFO [AsyncHBase Timer HBaseClient #1-EventThread] ClientCnxn: EventThread shut down
2016-12-14 00:51:16,084 INFO [AsyncHBase Timer HBaseClient #1-SendThread(sandbox.hortonworks.com:2181)] ClientCnxn: Session establishment complete on server sandbox.hortonworks.com/10.0.2.15:2181, sessionid = 0x158fa6cce650090, negotiated timeout = 5000
2016-12-14 00:51:16,087 INFO [AsyncHBase Timer HBaseClient #1-EventThread] HBaseClient: Connecting to .META. region @ 10.0.2.15:16020
2016-12-14 00:51:16,089 INFO [AsyncHBase I/O Worker #2] HBaseClient: Channel [id: 0xd63aca14, /10.0.2.15:37376 😆 /10.0.2.15:16020] is disconnecting: [id: 0xd63aca14, /10.0.2.15:37376 😆 /10.0.2.15:16020] DISCONNECTED
2016-12-14 00:51:16,090 INFO [AsyncHBase Timer HBaseClient #1-EventThread] HBaseClient: Need to find the .META. region
2016-12-14 00:51:16,092 INFO [AsyncHBase Timer HBaseClient #1-EventThread] ZooKeeper: Session: 0x158fa6cce650090 closed
2016-12-14 00:51:16,092 INFO [AsyncHBase Timer HBaseClient #1-EventThread] ZooKeeper: Initiating client connection, connectString=sandbox.hortonworks.com:2181 sessionTimeout=5000 watcher=org.hbase.async.HBaseClient$ZKClient@6e232ae3
2016-12-14 00:51:16,094 INFO [AsyncHBase Timer HBaseClient #1-SendThread(sandbox.hortonworks.com:2181)] ClientCnxn: Opening socket connection to server sandbox.hortonworks.com/10.0.2.15:2181. Will not attempt to authenticate using SASL (unknown error)
2016-12-14 00:51:16,095 INFO [AsyncHBase Timer HBaseClient #1-SendThread(sandbox.hortonworks.com:2181)] ClientCnxn: Socket connection established to sandbox.hortonworks.com/10.0.2.15:2181, initiating session
2016-12-14 00:51:16,098 INFO [AsyncHBase Timer HBaseClient #1-SendThread(sandbox.hortonworks.com:2181)] ClientCnxn: Session establishment complete on server sandbox.hortonworks.com/10.0.2.15:2181, sessionid = 0x158fa6cce650091, negotiated timeout = 5000
2016-12-14 00:51:16,098 INFO [AsyncHBase Timer HBaseClient #1-EventThread] ClientCnxn: EventThread shut down
2016-12-14 00:51:16,104 INFO [AsyncHBase Timer HBaseClient #1-EventThread] HBaseClient: Connecting to .META. region @ 10.0.2.15:16020
2016-12-14 00:51:16,106 INFO [AsyncHBase I/O Worker #3] HBaseClient: Channel [id: 0x24387fa0, /10.0.2.15:37378 😆 /10.0.2.15:16020] is disconnecting: [id: 0x24387fa0, /10.0.2.15:37378 😆 /10.0.2.15:16020] DISCONNECTED
2016-12-14 00:51:16,107 INFO [AsyncHBase Timer HBaseClient #1-EventThread] HBaseClient: Need to find the .META. region
2016-12-14 00:51:16,110 INFO [AsyncHBase Timer HBaseClient #1-EventThread] ZooKeeper: Session: 0x158fa6cce650091 closed
2016-12-14 00:51:16,110 INFO [AsyncHBase Timer HBaseClient #1-EventThread] ZooKeeper: Initiating client connection, connectString=sandbox.hortonworks.com:2181 sessionTimeout=5000 watcher=org.hbase.async.HBaseClient$ZKClient@6e232ae3
2016-12-14 00:51:16,110 INFO [AsyncHBase Timer HBaseClient #1-SendThread(sandbox.hortonworks.com:2181)] ClientCnxn: Opening socket connection to server sandbox.hortonworks.com/10.0.2.15:2181. Will not attempt to authenticate using SASL (unknown error)
2016-12-14 00:51:16,112 INFO [AsyncHBase Timer HBaseClient #1-SendThread(sandbox.hortonworks.com:2181)] ClientCnxn: Socket connection established to sandbox.hortonworks.com/10.0.2.15:2181, initiating session
2016-12-14 00:51:16,115 INFO [AsyncHBase Timer HBaseClient #1-SendThread(sandbox.hortonworks.com:2181)] ClientCnxn: Session establishment complete on server sandbox.hortonworks.com/10.0.2.15:2181, sessionid = 0x158fa6cce650092, negotiated timeout = 5000
2016-12-14 00:51:16,116 INFO [AsyncHBase Timer HBaseClient #1-EventThread] ClientCnxn: EventThread shut down
2016-12-14 00:51:16,122 INFO [AsyncHBase Timer HBaseClient #1-EventThread] HBaseClient: Connecting to .META. region @ 10.0.2.15:16020
2016-12-14 00:51:16,126 INFO [AsyncHBase I/O Worker #4] HBaseClient: Channel [id: 0x8d3a08ca, /10.0.2.15:37380 😆 /10.0.2.15:16020] is disconnecting: [id: 0x8d3a08ca, /10.0.2.15:37380 😆 /10.0.2.15:16020] DISCONNECTED
2016-12-14 00:51:16,127 INFO [AsyncHBase Timer HBaseClient #1-EventThread] HBaseClient: Need to find the .META. region
2016-12-14 00:51:16,130 INFO [AsyncHBase Timer HBaseClient #1-EventThread] ZooKeeper: Session: 0x158fa6cce650092 closed
2016-12-14 00:51:16,130 INFO [AsyncHBase Timer HBaseClient #1-EventThread] ZooKeeper: Initiating client connection, connectString=sandbox.hortonworks.com:2181 sessionTimeout=5000 watcher=org.hbase.async.HBaseClient$ZKClient@6e232ae3
2016-12-14 00:51:16,131 INFO [AsyncHBase Timer HBaseClient #1-SendThread(sandbox.hortonworks.com:2181)] ClientCnxn: Opening socket connection to server sandbox.hortonworks.com/10.0.2.15:2181. Will not attempt to authenticate using SASL (unknown error)
2016-12-14 00:51:16,132 INFO [AsyncHBase Timer HBaseClient #1-SendThread(sandbox.hortonworks.com:2181)] ClientCnxn: Socket connection established to sandbox.hortonworks.com/10.0.2.15:2181, initiating session
2016-12-14 00:51:16,135 INFO [AsyncHBase Timer HBaseClient #1-SendThread(sandbox.hortonworks.com:2181)] ClientCnxn: Session establishment complete on server sandbox.hortonworks.com/10.0.2.15:2181, sessionid = 0x158fa6cce650093, negotiated timeout = 5000
2016-12-14 00:51:16,136 INFO [AsyncHBase Timer HBaseClient #1-EventThread] ClientCnxn: EventThread shut down
2016-12-14 00:51:16,143 INFO [AsyncHBase Timer HBaseClient #1-EventThread] HBaseClient: Connecting to .META. region @ 10.0.2.15:16020
2016-12-14 00:51:16,146 INFO [AsyncHBase I/O Worker #1] HBaseClient: Channel [id: 0x43a1016f, /10.0.2.15:37382 😆 /10.0.2.15:16020] is disconnecting: [id: 0x43a1016f, /10.0.2.15:37382 😆 /10.0.2.15:16020] DISCONNECTED
2016-12-14 00:51:16,147 INFO [AsyncHBase Timer HBaseClient #1-EventThread] HBaseClient: Need to find the .META. region
2016-12-14 00:51:16,150 INFO [AsyncHBase Timer HBaseClient #1-EventThread] ZooKeeper: Session: 0x158fa6cce650093 closed
2016-12-14 00:51:16,150 INFO [AsyncHBase Timer HBaseClient #1-EventThread] ZooKeeper: Initiating client connection, connectString=sandbox.hortonworks.com:2181 sessionTimeout=5000 watcher=org.hbase.async.HBaseClient$ZKClient@6e232ae3
2016-12-14 00:51:16,151 INFO [AsyncHBase Timer HBaseClient #1-SendThread(sandbox.hortonworks.com:2181)] ClientCnxn: Opening socket connection to server sandbox.hortonworks.com/10.0.2.15:2181. Will not attempt to authenticate using SASL (unknown error)
2016-12-14 00:51:16,153 INFO [AsyncHBase Timer HBaseClient #1-SendThread(sandbox.hortonworks.com:2181)] ClientCnxn: Socket connection established to sandbox.hortonworks.com/10.0.2.15:2181, initiating session
2016-12-14 00:51:16,155 INFO [AsyncHBase Timer HBaseClient #1-EventThread] ClientCnxn: EventThread shut down
2016-12-14 00:51:16,160 INFO [AsyncHBase Timer HBaseClient #1-SendThread(sandbox.hortonworks.com:2181)] ClientCnxn: Session establishment complete on server sandbox.hortonworks.com/10.0.2.15:2181, sessionid = 0x158fa6cce650094, negotiated timeout = 5000
2016-12-14 00:51:16,163 INFO [AsyncHBase Timer HBaseClient #1-EventThread] HBaseClient: Connecting to .META. region @ 10.0.2.15:16020
2016-12-14 00:51:16,167 INFO [AsyncHBase I/O Worker #2] HBaseClient: Channel [id: 0x9b61659f, /10.0.2.15:37384 😆 /10.0.2.15:16020] is disconnecting: [id: 0x9b61659f, /10.0.2.15:37384 😆 /10.0.2.15:16020] DISCONNECTED
2016-12-14 00:51:16,174 INFO [main] TSDB: Flushing compaction queue
2016-12-14 00:51:16,185 INFO [AsyncHBase Timer HBaseClient #1-EventThread] ZooKeeper: Session: 0x158fa6cce650094 closed
2016-12-14 00:51:16,185 INFO [AsyncHBase Timer HBaseClient #1-EventThread] ClientCnxn: EventThread shut down
2016-12-14 00:51:16,191 INFO [main] TSDB: Completed shutting down the TSDB
Exception in thread "main" java.lang.RuntimeException: Initialization failed
at net.opentsdb.tools.TSDMain.main(TSDMain.java:196)
Caused by: com.stumbleupon.async.DeferredGroupException: At least one of the Deferreds failed, first exception:
at com.stumbleupon.async.DeferredGroup.done(DeferredGroup.java:169)
at com.stumbleupon.async.DeferredGroup.recordCompletion(DeferredGroup.java:142)
at com.stumbleupon.async.DeferredGroup.access$000(DeferredGroup.java:36)
at com.stumbleupon.async.DeferredGroup$1Notify.call(DeferredGroup.java:82)
at com.stumbleupon.async.Deferred.doCall(Deferred.java:1278)
at com.stumbleupon.async.Deferred.runCallbacks(Deferred.java:1257)
at com.stumbleupon.async.Deferred.access$300(Deferred.java:430)
at com.stumbleupon.async.Deferred$Continue.call(Deferred.java:1366)
at com.stumbleupon.async.Deferred.doCall(Deferred.java:1278)
at com.stumbleupon.async.Deferred.runCallbacks(Deferred.java:1257)
at com.stumbleupon.async.Deferred.handleContinuation(Deferred.java:1313)
at com.stumbleupon.async.Deferred.doCall(Deferred.java:1284)
at com.stumbleupon.async.Deferred.runCallbacks(Deferred.java:1257)
at com.stumbleupon.async.Deferred.callback(Deferred.java:1005)
at org.hbase.async.HBaseRpc.callback(HBaseRpc.java:712)
at org.hbase.async.HBaseClient.tooManyAttempts(HBaseClient.java:2058)
at org.hbase.async.HBaseClient.sendRpcToRegion(HBaseClient.java:1920)
at org.hbase.async.HBaseClient$1RetryRpc.call(HBaseClient.java:1944)
at org.hbase.async.HBaseClient$1RetryRpc.call(HBaseClient.java:1927)
at com.stumbleupon.async.Deferred.doCall(Deferred.java:1278)
at com.stumbleupon.async.Deferred.runCallbacks(Deferred.java:1257)
at com.stumbleupon.async.Deferred.callback(Deferred.java:1005)
at org.hbase.async.HBaseClient$ZKClient$ZKCallback.processResult(HBaseClient.java:3645)
at org.apache.zookeeper.ClientCnxn$EventThread.processEvent(ClientCnxn.java:558)
at org.apache.zookeeper.ClientCnxn$EventThread.run(ClientCnxn.java:495)
Caused by: org.hbase.async.NonRecoverableException: Too many attempts: HBaseRpc(method=getClosestRowBefore, table="hbase:meta", key=[116, 115, 100, 98, 45, 117, 105, 100, 44, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 58, 65, 115, 121, 110, 99, 72, 66, 97, 115, 101, 126, 112, 114, 111, 98, 101, 126, 60, 59, 95, 60, 44, 58], region=RegionInfo(table="hbase:meta", region_name="hbase:meta,,1", stop_key=""), attempt=11, timeout=0, hasTimedout=false)
at org.hbase.async.HBaseClient.tooManyAttempts(HBaseClient.java:2056)
... 9 more
... View more
12-13-2016
06:37 AM
@Hammad Ali - pls let me know how you installed OpenTSDB (which version) & also, how you added the OPENTSDB service to Ambari Is there a document available for this ?
... View more
12-13-2016
12:45 AM
@Hammad Ali i used the following command to download the version 2.2.1 This went through fine, however - when i do 'Add Service' on Ambari, i don't see OpenTSDB as an option git clone https://github.com/OpenTSDB/opentsdb.git /var/lib/ambari-server/resources/stacks/HDP/$VERSION/services/OPENTSDB Alternately, when i use this (the earlier url specified in this link -https://community.hortonworks.com/articles/4577/use-opentsdb-to-storevisualize-stock-data-on-hdp-s.html), it goes through fine.. however, as you mentioned, i need OpenTSDB v 2.2.0 and later. Older command (using v2.0.1) : sudo git clone https://github.com/hortonworks-gallery/ambari-opentsdb-service.git /var/lib/ambari-server/resources/stacks/HDP/$VERSION/services/OPENTSDB Any ideas ? Alternately, what are the steps you followed to download v2.3.0 & install OpenTSDB, and then add to Ambari ?
... View more
12-12-2016
11:19 PM
@Hammad Ali - i seem to be having issues in trying to install OpenTSDB on HDP 2.4, can you pls. help confirm the steps .. what i've done so far -> -> Downloaded jar from https://github.com/OpenTSDB/opentsdb/releases/tag/v2.3.0RC2
- > run gunzip & tar -xvf opentsdb-2.3.0-RC2.tar -> cd opentsdb-2.3.0-RC2.tar -> ./build.sh which gives me the following error - make[1]: Entering directory `/root/opentsdb-2.3.0-RC2/build'
/usr/lib/jvm/java/bin/java -cp third_party/javacc/javacc-6.1.2.jar javacc -OUTPUT_DIRECTORY:./src/net/opentsdb/query/expression/parser ../src/parser.jj; echo PWD: `pwd`;
Error: Could not find or load main class javacc
PWD: /root/opentsdb-2.3.0-RC2/build Thanks for help in advance !
... View more
12-11-2016
05:06 PM
@ARUN - did you get this fixed ? @mqureshi , @Aravindan Vijayan - looping you as well. I'm getting the same error -> https://community.hortonworks.com/questions/70820/kerberized-hdp-24-amabari-metric-v-2220-shutting-d.html#answer-70905 ---------------------------------- 2016-12-11 17:00:38,348 WARN org.apache.hadoop.hbase.zookeeper.RecoverableZooKeeper: Possibly transient ZooKeeper, quorum=localhost:61181, exception=org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss for /ams-hbase-secure
2016-12-11 17:00:38,348 ERROR org.apache.hadoop.hbase.zookeeper.RecoverableZooKeeper: ZooKeeper exists failed after 4 attempts
2016-12-11 17:00:38,348 WARN org.apache.hadoop.hbase.zookeeper.ZKUtil: hconnection-0x155aa3ef-0x158eed3ab0f0002, quorum=localhost:61181, baseZNode=/ams-hbase-secure Unable to set watcher on znode (/ams-hbase-secure)
org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss for /ams-hbase-secure
at org.apache.zookeeper.KeeperException.create(KeeperException.java:99)
at org.apache.zookeeper.KeeperException.create(KeeperException.java:51)
at org.apache.zookeeper.ZooKeeper.exists(ZooKeeper.java:1045)
at org.apache.hadoop.hbase.zookeeper.RecoverableZooKeeper.exists(RecoverableZooKeeper.java:221)
at org.apache.hadoop.hbase.zookeeper.ZKUtil.checkExists(ZKUtil.java:417)
... View more
12-09-2016
08:01 PM
@Kuldeep Kulkarni - thanks for the response, the issue got fixed. Pls see link -> https://community.hortonworks.com/questions/69761/kerberized-hdp-24-getting-error-in-using-hive-view.html#answer-69863
... View more
12-09-2016
06:38 AM
the issue is fixed, ambari-server was not upgraded, while the agent was upgraded - hence the issue.
... View more
12-09-2016
06:24 AM
Hi All - i'm upgrading Ambari from 2.2.1 to 2.2.2.0, and running into issues while starting ambari-agent. Pls. note - i'm refering the following link for the upgrade - http://docs.hortonworks.com/HDPDocuments/Ambari-2.2.2.0/bk_upgrading_Ambari/content/_upgrade_ambari.html ----------Error ------------------------------------------------------------------------------------------ [root@sandbox ~]# ambari-agent start
Verifying Python version compatibility...
Using python /usr/bin/python
Checking for previously running Ambari Agent...
Starting ambari-agent
Verifying ambari-agent process status...
ERROR: ambari-agent start failed. For more details, see /var/log/ambari-agent/ambari-agent.out:
====================
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/ambari_agent/AmbariAgent.py", line 24, in <module>
from Controller import AGENT_AUTO_RESTART_EXIT_CODE
File "/usr/lib/python2.6/site-packages/ambari_agent/Controller.py", line 44, in <module>
from ambari_agent.AlertSchedulerHandler import AlertSchedulerHandler
File "/usr/lib/python2.6/site-packages/ambari_agent/AlertSchedulerHandler.py", line 34, in <module>
from alerts.script_alert import ScriptAlert
File "/usr/lib/python2.6/site-packages/ambari_agent/alerts/script_alert.py", line 27, in <module>
from resource_management.libraries.functions.curl_krb_request import KERBEROS_KINIT_TIMER_PARAMETER
ImportError: cannot import name KERBEROS_KINIT_TIMER_PARAMETER
====================
Agent out at: /var/log/ambari-agent/ambari-agent.out
Agent log at: /var/log/ambari-agent/ambari-agent.log ----------------------------------------------- Any ideas on how to overcome this error ? Appreciate your inputs. thanks.
... View more
Labels:
12-08-2016
10:03 PM
@Hammad Ali - did you get this working ? I'm facing similar issue.
... View more