Support Questions

Find answers, ask questions, and share your expertise

Accumulo service check getting failed.

avatar
Explorer

Accumulo is not showing any alert but accumulo.pngaccumulo-error.png

Accumulo service check is getting failed with error:

 ERROR: org.apache.accumulo.core.client.TableExistsException: Table testtable exists
2018-08-30 17:10:46,508 [shell.Shell] ERROR: java.lang.IllegalStateException: Not in a table context. Please use 'table <tableName>' to switch to a table, or use '-t' to specify a table if option is available.
2018-08-30 17:10:46,509 [shell.Shell] ERROR: java.lang.IllegalStateException: Not in a table context. Please use 'table <tableName>' to switch to a table, or use '-t' to specify a table if option is available.
2018-08-30 17:10:46,509 [shell.Shell] ERROR: java.lang.IllegalStateException: Not in a table context. Please use 'table <tableName>' to switch to a table, or use '-t' to specify a table if option is available.
2018-08-30 17:10:46,509 [shell.Shell] ERROR: java.lang.IllegalStateException: Not in a table context. Please use 'table <tableName>' to switch to a table, or use '-t' to specify a table if option is available.
1 ACCEPTED SOLUTION

avatar
Master Mentor

@Shobhna Dhami


Can you try running the command manually as following? And check if the "testtable" exist?

# /usr/hdp/current/accumulo-client/bin/accumulo shell -u ambari-qa -p smoke
> tables

As we see the exception as following:

 ERROR: org.apache.accumulo.core.client.TableExistsException:Table testtable exists


Hence If the 'testtable' exist then try to drop it once and then re run the service check.

> droptable testtable 

.

View solution in original post

4 REPLIES 4

avatar
Master Mentor

@Shobhna Dhami


Can you try running the command manually as following? And check if the "testtable" exist?

# /usr/hdp/current/accumulo-client/bin/accumulo shell -u ambari-qa -p smoke
> tables

As we see the exception as following:

 ERROR: org.apache.accumulo.core.client.TableExistsException:Table testtable exists


Hence If the 'testtable' exist then try to drop it once and then re run the service check.

> droptable testtable 

.

avatar
Master Mentor

@Shobhna Dhami

If it still does not work then please share the Accumulo logs along with the ambari agent logs.

Also please let us know which version of Ambari Do you use? Because in very old version of ambari similar issue was reported and for enhancement, Where the issue was occurring due to already existing "testtable": https://issues.apache.org/jira/browse/AMBARI-14776

You might also want to refer to the following doc: https://community.hortonworks.com/articles/79327/re-initializing-apache-accumulo-under-hdp.html

avatar
Explorer

avatar
Explorer

@Jay Kumar SenSharma Thanks for the reply.

I tried to drop table testtable but getting error : Thread "shell" stuck on IO to slnxhadoop03.dhcp.noid.in:9999 (0) for at least 120348 ms

I am using HDP 2.5.3 and ambari version 2.4.2.0.