Uploaded image for project: 'Bigtop'
  1. Bigtop
  2. BIGTOP-1520

Files permissions prevent running hbase shell for non root users.



    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 0.8.0
    • Fix Version/s: None
    • Component/s: hbase
    • Labels:


      When installing those rpms:

      yum install bigtop-utils-0.8.0-1.el6.noarch.rpm
      yum install zookeeper-3.4.5-1.el6.noarch.rpm
      yum install hadoop-2.4.1-1.el6.x86_64.rpm
      yum install bigtop-jsvc-1.0.15-1.el6.x86_64.rpm
      yum install hadoop-hdfs-2.4.1-1.el6.x86_64.rpm
      yum install hbase-0.98.5-1.el6.noarch.rpm
      yum install hadoop-yarn-2.4.1-1.el6.x86_64.rpm
      yum install hadoop-mapreduce-2.4.1-1.el6.x86_64.rpm
      yum install hadoop-client-2.4.1-1.el6.x86_64.rpm
      yum install sqoop-1.4.5-1.el6.noarch.rpm

      Running hbase shell with a "normal" user gives this:

      hbase shell
      2014-11-06 13:04:19,886 INFO  [main] Configuration.deprecation: hadoop.native.lib is deprecated. Instead, use io.native.lib.available
      RuntimeError: Can't load hbase shell command: trace. Error: cannot load Java class org.cloudera.htrace.Trace
      org/jruby/javasupport/JavaUtilities.java:54:in `get_proxy_or_package_under_package'
      file:/usr/lib/hbase/lib/jruby-complete-1.6.8.jar!/builtin/javasupport/java.rb:51:in `method_missing'
      /usr/lib/hbase/lib/ruby/shell/commands/trace.rb:19:in `(root)'
      org/jruby/RubyKernel.java:1062:in `require'
      /usr/lib/hbase/lib/ruby/shell.rb:41:in `load_command'
      /usr/lib/hbase/lib/ruby/shell/commands/trace.rb:60:in `load_command_group'
      org/jruby/RubyArray.java:1620:in `each'
      /usr/lib/hbase/lib/ruby/shell.rb:59:in `load_command_group'
      /usr/lib/hbase/lib/ruby/shell.rb:291:in `(root)'
      org/jruby/RubyKernel.java:1062:in `require'
      /usr/lib/hbase/bin/hirb.rb:108:in `(root)'
              load_command at /usr/lib/hbase/lib/ruby/shell.rb:45
              load_command at /usr/lib/hbase/lib/ruby/shell.rb:43
        load_command_group at /usr/lib/hbase/lib/ruby/shell.rb:60
                      each at org/jruby/RubyArray.java:1620
        load_command_group at /usr/lib/hbase/lib/ruby/shell.rb:59
                    (root) at /usr/lib/hbase/lib/ruby/shell.rb:291
                   require at org/jruby/RubyKernel.java:1062
                    (root) at /usr/lib/hbase/bin/hirb.rb:108

      Because rights on those files are not correct:

      Cause: ls -l /usr/lib/hbase/lib/
      -rw-r--r--. 1 root root  2358752 Aug 20 12:07 hbase-thrift-0.98.5.jar
      -rw-r--r--. 1 root root    95975 Aug 15 13:17 high-scale-lib-1.1.1.jar
      -rw-------. 1 root root    31532 Aug 18 10:25 htrace-core-2.04.jar
      -rw-------. 1 root root   433368 Aug 18 11:06 httpclient-4.2.5.jar
      -rw-r--r--. 1 root root   181201 Aug 15 13:17 httpcore-4.1.3.jar
      -rw-r--r--. 1 root root   227500 Aug 15 12:46 jackson-core-asl-1.8.8.jar
      -rw-r--r--. 1 root root    17884 Aug 15 13:17 jackson-jaxrs-1.8.8.jar
      ls -l /etc/hadoop/conf/
      total 100
      -rw-r--r--. 1 root root  1383 Aug 19 09:13 mapred-env.sh
      -rw-r--r--. 1 root root  4113 Aug 19 09:13 mapred-queues.xml.template
      -rw-------. 1 root root   904 Aug 19 09:13 mapred-site.xml
      -rw-r--r--. 1 root root   758 Aug 19 09:13 mapred-site.xml.template

      Many files are missing the read flag for group and other.




            • Assignee:
              jmspaggi Jean-Marc Spaggiari
            • Votes:
              0 Vote for this issue
              2 Start watching this issue


              • Created: