Support Questions
Find answers, ask questions, and share your expertise

Issue in starting webhcat for hive

Highlighted

Issue in starting webhcat for hive

[hcat@h2cie-mas ~]$ sh /usr/hdp/current/hive-webhcat/sbin/webhcat_server.sh start
ERROR: List of process IDs must follow -p.
********* simple selection *********  ********* selection by list *********
-A all processes                      -C by command name
-N negate selection                   -G by real group ID (supports names)
-a all w/ tty except session leaders  -U by real user ID (supports names)
-d all except session leaders         -g by session OR by effective group name
-e all processes                      -p by process ID
                                      -q by process ID (unsorted & quick)
T  all processes on this terminal     -s processes in the sessions given
a  all w/ tty, including other users  -t by tty
g  OBSOLETE -- DO NOT USE             -u by effective user ID (supports names)
r  only running processes             U  processes for specified users
x  processes w/o controlling ttys     t  by tty
*********** output format **********  *********** long options ***********
-o,o user-defined  -f full            --Group --User --pid --cols --ppid
-j,j job control   s  signal          --group --user --sid --rows --info
-O,O preloaded -o  v  virtual memory  --cumulative --format --deselect
-l,l long          u  user-oriented   --sort --tty --forest --version
-F   extra full    X  registers       --heading --no-heading --context
                                      --quick-pid
                    ********* misc options *********
-V,V  show version      L  list format codes  f  ASCII art forest
-m,m,-L,-T,H  threads   S  children in sum    -y change -l format
-M,Z  security data     c  true command name  -c scheduling class
-w,w  wide output       n  numeric WCHAN,UID  -H process hierarchy
webhcat: starting ...
webhcat: /usr/hdp/current/hadoop-client/bin/hadoop jar /usr/hdp/2.3.2.0-2950/hive-hcatalog/sbin/../share/webhcat/svr/lib/hive-webhcat-1.2.1.2.3.2.0-2950.jar org.apache.hive.hcatalog.templeton.Main
/usr/hdp/2.3.2.0-2950/hive-hcatalog/sbin/webhcat_server.sh: failed to start. Check logs in  /var/log/webhcat
[hcat@h2cie-mas ~]$ ll /var/log/webhcat/webhcat-console-error.log
-rw------- 1 hcat hadoop 1439 Jun 28 17:24 /var/log/webhcat/webhcat-console-error.log
[hcat@h2cie-mas ~]$ tail -100f /var/log/webhcat/webhcat-console-error.log
WARNING: Use "yarn jar" to launch YARN applications.
Exception in thread "main" java.lang.NoSuchMethodError: org.apache.hadoop.conf.Configuration.addDeprecations([Lorg/apache/hadoop/conf/Configuration$DeprecationDelta;)V
        at org.apache.hadoop.mapreduce.util.ConfigUtil.addDeprecatedKeys(ConfigUtil.java:54)
        at org.apache.hadoop.mapreduce.util.ConfigUtil.loadResources(ConfigUtil.java:42)
        at org.apache.hadoop.mapred.JobConf.<clinit>(JobConf.java:119)
        at org.apache.hadoop.hive.conf.HiveConf.initialize(HiveConf.java:2702)
        at org.apache.hadoop.hive.conf.HiveConf.<init>(HiveConf.java:2662)
        at org.apache.hive.hcatalog.templeton.AppConfig.handleHiveProperties(AppConfig.java:201)
        at org.apache.hive.hcatalog.templeton.AppConfig.init(AppConfig.java:188)
        at org.apache.hive.hcatalog.templeton.AppConfig.<init>(AppConfig.java:168)
        at org.apache.hive.hcatalog.templeton.Main.loadConfig(Main.java:96)
        at org.apache.hive.hcatalog.templeton.Main.init(Main.java:80)
        at org.apache.hive.hcatalog.templeton.Main.<init>(Main.java:75)
        at org.apache.hive.hcatalog.templeton.Main.main(Main.java:265)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.apache.hadoop.util.RunJar.main(RunJar.java:187)
6 REPLIES 6
Highlighted

Re: Issue in starting webhcat for hive

tail -100f /var/log/webhcat/webhcat-console-error.log WARNING: Use "yarn jar" to launch YARN applications. Exception in thread "main" java.lang.NoSuchMethodError: org.apache.hadoop.conf.Configuration.addDeprecations([Lorg/apache/hadoop/conf/Configuration$DeprecationDelta;)V at org.apache.hadoop.mapreduce.util.ConfigUtil.addDeprecatedKeys(ConfigUtil.java:54) at org.apache.hadoop.mapreduce.util.ConfigUtil.loadResources(ConfigUtil.java:42) at org.apache.hadoop.mapred.JobConf.<clinit>(JobConf.java:119) at org.apache.hadoop.hive.conf.HiveConf.initialize(HiveConf.java:2702) at org.apache.hadoop.hive.conf.HiveConf.<init>(HiveConf.java:2662) at org.apache.hive.hcatalog.templeton.AppConfig.handleHiveProperties(AppConfig.java:201) at org.apache.hive.hcatalog.templeton.AppConfig.init(AppConfig.java:188) at org.apache.hive.hcatalog.templeton.AppConfig.<init>(AppConfig.java:168) at org.apache.hive.hcatalog.templeton.Main.loadConfig(Main.java:96) at org.apache.hive.hcatalog.templeton.Main.init(Main.java:80) at org.apache.hive.hcatalog.templeton.Main.<init>(Main.java:75) at org.apache.hive.hcatalog.templeton.Main.main(Main.java:265) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.hadoop.util.RunJar.main(RunJar.java:187)

Highlighted

Re: Issue in starting webhcat for hive

Here i have all the yarn jars (present in lib folders) included while running oozie jobs. But those oozie jobs fail with below exception:

Failing Oozie Launcher, Main class [org.apache.oozie.action.hadoop.JavaMain], main() threw exception, java.lang.NoSuchMethodError: org.apache.hadoop.hbase.util.Bytes.equals([BLjava/nio/ByteBuffer;)Z
org.apache.oozie.action.hadoop.JavaMainException: java.lang.NoSuchMethodError: org.apache.hadoop.hbase.util.Bytes.equals([BLjava/nio/ByteBuffer;)Z
Highlighted

Re: Issue in starting webhcat for hive

Here i have all the yarn jars (present in lib folders) included while running oozie jobs. But those oozie jobs fail with below exception:

  1. FailingOozieLauncher,Mainclass[org.apache.oozie.action.hadoop.JavaMain], main() threw exception, java.lang.NoSuchMethodError: org.apache.hadoop.hbase.util.Bytes.equals([BLjava/nio/ByteBuffer;)Z org.apache.oozie.action.hadoop.JavaMainException: java.lang.NoSuchMethodError: org.apache.hadoop.hbase.util.Bytes.equals([BLjava/nio/ByteBuffer;)Z
Highlighted

Re: Issue in starting webhcat for hive

Master Collaborator

How is the cluster installed - Ambari or manual?

Highlighted

Re: Issue in starting webhcat for hive

Thanks for your reply Deepesh, Cluster is installed using Ambari.

Highlighted

Re: Issue in starting webhcat for hive

Super Guru
@Jaboy Mathai

Can you please check workaround suggested in https://issues.apache.org/jira/browse/HIVE-6962