Support Questions

Find answers, ask questions, and share your expertise

ArgumentError: wrong number of arguments (3 for 2) while opening Hbase shell

avatar
Expert Contributor

while opening Hbase shell from command line as below

[hbase$host ~] $ hbase shell

getting below error. ArgumentError: wrong number of arguments (3 for 2) (root) at /usr/hdp/2.4.0.0-169/hbase/bin/hirb.rb:134

Please advise on this.

1 ACCEPTED SOLUTION

avatar
Expert Contributor

@Predrag Minovic

This issue has been fixed after removing interactive from /usr/hdp/current/hbase-master/bin/hirb in line no.134

Thanks for all your help 🙂

View solution in original post

6 REPLIES 6

avatar
Expert Contributor

@vpoornalingam @Jitendra Yadav @Pranay Vyas

Any suggestion on this please.

Thanks in advance!

avatar
Master Guru

Can you try to run in the debug mode: "hbase shell -d", and see are there any clues. Is your Zookeeper up and running? If you are using Ambari can you try ZK and HBase service checks. hbase shell is supposed to work even if HBase is stopped (but you want be able to see any tables).

avatar
Expert Contributor

In debug mode also same issue.

Zookeeper server and clients are up and running in all 3 nodes.

Service check for Hbase failed.

avatar
Expert Contributor

@Predrag Minovic

Same issue in debug mode also.

Service check for Zookeeper succeeded.

But service check for Hbase failed with the below error log.

stderr: Traceback (most recent call last): File "/var/lib/ambari-agent/cache/common-services/HBASE/0.96.0.2.0/package/scripts/service_check.py", line 88, in <module> HbaseServiceCheck().execute() File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 219, in execute method(env) File "/var/lib/ambari-agent/cache/common-services/HBASE/0.96.0.2.0/package/scripts/service_check.py", line 84, in service_check logoutput = True File "/usr/lib/python2.6/site-packages/resource_management/core/base.py", line 154, in __init__ self.env.run() File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 158, in run self.run_action(resource, action) File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 121, in run_action provider_action() File "/usr/lib/python2.6/site-packages/resource_management/core/providers/system.py", line 238, in action_run tries=self.resource.tries, try_sleep=self.resource.try_sleep) File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 70, in inner result = function(command, **kwargs) File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 92, in checked_call tries=tries, try_sleep=try_sleep) File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 140, in _call_wrapper result = _call(command, **kwargs_copy) File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 291, in _call raise Fail(err_msg) resource_management.core.exceptions.Fail: Execution of ' /usr/hdp/current/hbase-client/bin/hbase --config /usr/hdp/current/hbase-client/conf shell /var/lib/ambari-agent/tmp/hbase-smoke.sh && /var/lib/ambari-agent/tmp/hbaseSmokeVerify.sh /usr/hdp/current/hbase-client/conf ida8c0a001_date491016 /usr/hdp/current/hbase-client/bin/hbase' returned 1. ArgumentError: wrong number of arguments (3 for 2) (root) at /usr/hdp/2.4.0.0-169/hbase/bin/hirb.rb:134 stdout: 2016-05-10 12:49:23,216 - Using hadoop conf dir: /usr/hdp/current/hadoop-client/conf 2016-05-10 12:49:23,230 - File['/var/lib/ambari-agent/tmp/hbaseSmokeVerify.sh'] {'content': StaticFile('hbaseSmokeVerify.sh'), 'mode': 0755} 2016-05-10 12:49:23,243 - Writing File['/var/lib/ambari-agent/tmp/hbaseSmokeVerify.sh'] because it doesn't exist 2016-05-10 12:49:23,244 - Changing permission for /var/lib/ambari-agent/tmp/hbaseSmokeVerify.sh from 644 to 755 2016-05-10 12:49:23,262 - File['/var/lib/ambari-agent/tmp/hbase-smoke.sh'] {'content': Template('hbase-smoke.sh.j2'), 'mode': 0755} 2016-05-10 12:49:23,263 - Writing File['/var/lib/ambari-agent/tmp/hbase-smoke.sh'] because it doesn't exist 2016-05-10 12:49:23,264 - Changing permission for /var/lib/ambari-agent/tmp/hbase-smoke.sh from 644 to 755 2016-05-10 12:49:23,265 - Execute[' /usr/hdp/current/hbase-client/bin/hbase --config /usr/hdp/current/hbase-client/conf shell /var/lib/ambari-agent/tmp/hbase-smoke.sh && /var/lib/ambari-agent/tmp/hbaseSmokeVerify.sh /usr/hdp/current/hbase-client/conf ida8c0a001_date491016 /usr/hdp/current/hbase-client/bin/hbase'] {'logoutput': True, 'tries': 6, 'user': 'ambari-qa', 'try_sleep': 5} ArgumentError: wrong number of arguments (3 for 2) (root) at /usr/hdp/2.4.0.0-169/hbase/bin/hirb.rb:134 2016-05-10 12:49:30,579 - Retrying after 5 seconds. Reason: Execution of ' /usr/hdp/current/hbase-client/bin/hbase --config /usr/hdp/current/hbase-client/conf shell /var/lib/ambari-agent/tmp/hbase-smoke.sh && /var/lib/ambari-agent/tmp/hbaseSmokeVerify.sh /usr/hdp/current/hbase-client/conf ida8c0a001_date491016 /usr/hdp/current/hbase-client/bin/hbase' returned 1. ArgumentError: wrong number of arguments (3 for 2) (root) at /usr/hdp/2.4.0.0-169/hbase/bin/hirb.rb:134 ArgumentError: wrong number of arguments (3 for 2) (root) at /usr/hdp/2.4.0.0-169/hbase/bin/hirb.rb:134 2016-05-10 12:49:42,468 - Retrying after 5 seconds. Reason: Execution of ' /usr/hdp/current/hbase-client/bin/hbase --config /usr/hdp/current/hbase-client/conf shell /var/lib/ambari-agent/tmp/hbase-smoke.sh && /var/lib/ambari-agent/tmp/hbaseSmokeVerify.sh /usr/hdp/current/hbase-client/conf ida8c0a001_date491016 /usr/hdp/current/hbase-client/bin/hbase' returned 1. ArgumentError: wrong number of arguments (3 for 2) (root) at /usr/hdp/2.4.0.0-169/hbase/bin/hirb.rb:134 ArgumentError: wrong number of arguments (3 for 2) (root) at /usr/hdp/2.4.0.0-169/hbase/bin/hirb.rb:134 2016-05-10 12:49:54,597 - Retrying after 5 seconds. Reason: Execution of ' /usr/hdp/current/hbase-client/bin/hbase --config /usr/hdp/current/hbase-client/conf shell /var/lib/ambari-agent/tmp/hbase-smoke.sh && /var/lib/ambari-agent/tmp/hbaseSmokeVerify.sh /usr/hdp/current/hbase-client/conf ida8c0a001_date491016 /usr/hdp/current/hbase-client/bin/hbase' returned 1. ArgumentError: wrong number of arguments (3 for 2) (root) at /usr/hdp/2.4.0.0-169/hbase/bin/hirb.rb:134 ArgumentError: wrong number of arguments (3 for 2) (root) at /usr/hdp/2.4.0.0-169/hbase/bin/hirb.rb:134 2016-05-10 12:50:06,916 - Retrying after 5 seconds. Reason: Execution of ' /usr/hdp/current/hbase-client/bin/hbase --config /usr/hdp/current/hbase-client/conf shell /var/lib/ambari-agent/tmp/hbase-smoke.sh && /var/lib/ambari-agent/tmp/hbaseSmokeVerify.sh /usr/hdp/current/hbase-client/conf ida8c0a001_date491016 /usr/hdp/current/hbase-client/bin/hbase' returned 1. ArgumentError: wrong number of arguments (3 for 2) (root) at /usr/hdp/2.4.0.0-169/hbase/bin/hirb.rb:134 ArgumentError: wrong number of arguments (3 for 2) (root) at /usr/hdp/2.4.0.0-169/hbase/bin/hirb.rb:134 2016-05-10 12:50:18,559 - Retrying after 5 seconds. Reason: Execution of ' /usr/hdp/current/hbase-client/bin/hbase --config /usr/hdp/current/hbase-client/conf shell /var/lib/ambari-agent/tmp/hbase-smoke.sh && /var/lib/ambari-agent/tmp/hbaseSmokeVerify.sh /usr/hdp/current/hbase-client/conf ida8c0a001_date491016 /usr/hdp/current/hbase-client/bin/hbase' returned 1. ArgumentError: wrong number of arguments (3 for 2) (root) at /usr/hdp/2.4.0.0-169/hbase/bin/hirb.rb:134 ArgumentError: wrong number of arguments (3 for 2) (root) at /usr/hdp/2.4.0.0-169/hbase/bin/hirb.rb:134

Any help would be appreciated !

avatar
Expert Contributor

@Predrag Minovic

This issue has been fixed after removing interactive from /usr/hdp/current/hbase-master/bin/hirb in line no.134

Thanks for all your help 🙂

avatar
Guru

I would suspect a version mismatch between an installed version of ruby / jruby and the one required by HBase.