Member since
11-27-2016
6
Posts
0
Kudos Received
0
Solutions
09-04-2018
03:13 PM
After installing Atlas and the datanodes in the cluster do not have the log path for hive you get the below stack: Exception in thread "main"
java.lang.ExceptionInInitializerError at
java.lang.Class.forName0(Native Method) at
java.lang.Class.forName(Class.java:348) at
org.apache.atlas.hive.hook.HiveHook.initialize(HiveHook.java:71) at
org.apache.atlas.hive.hook.HiveHook.<init>(HiveHook.java:41) at
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at
java.lang.reflect.Constructor.newInstance(Constructor.java:423) at
java.lang.Class.newInstance(Class.java:442) at
org.apache.hadoop.hive.ql.hooks.HookUtils.getHooks(HookUtils.java:60) at
org.apache.hadoop.hive.ql.Driver.getHooks(Driver.java:1386) at
org.apache.hadoop.hive.ql.Driver.getHooks(Driver.java:1370) at
org.apache.hadoop.hive.ql.Driver.execute(Driver.java:1598) at
org.apache.hadoop.hive.ql.Driver.runInternal(Driver.java:1291) at
org.apache.hadoop.hive.ql.Driver.run(Driver.java:1158) at
org.apache.hadoop.hive.ql.Driver.run(Driver.java:1148) at
org.apache.hadoop.hive.cli.CliDriver.processLocalCmd(CliDriver.java:217) at
org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:169) at
org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:380) at
org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:315) at
org.apache.hadoop.hive.cli.CliDriver.processReader(CliDriver.java:413) at
org.apache.hadoop.hive.cli.CliDriver.processFile(CliDriver.java:429) at
org.apache.hadoop.hive.cli.CliDriver.executeDriver(CliDriver.java:718) at
org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:685) at
org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:625) at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at
java.lang.reflect.Method.invoke(Method.java:498) at
org.apache.hadoop.util.RunJar.run(RunJar.java:233) at
org.apache.hadoop.util.RunJar.main(RunJar.java:148) Caused by: java.lang.NullPointerException at
java.io.File.<init>(File.java:277) at
org.apache.atlas.hook.FailedMessagesLogger.getRootLoggerDirectory(FailedMessagesLogger.java:86) at
org.apache.atlas.hook.FailedMessagesLogger.init(FailedMessagesLogger.java:49) at
org.apache.atlas.hook.AtlasHook.<clinit>(AtlasHook.java:77) ... 31
more To resolve this do the following, i.e. create the path for the hive process to dump log files in the cluster: pdsh -g allhosts 'mkdir -p
/var/hadoop/log/hive/ ; chmod 1777 /var/hadoop/log/hive/ ' # verify pdsh -g allhosts 'stat
-c"%a %U:%G %N" /var/hadoop/log/hive/ ' | dshbak -c
... View more
12-19-2016
01:45 PM
2 Kudos
what is yarn.scheduler.minimum-allocation-mb set to? in your case it looks yarn.scheduler.minimum-allocation-mb is set too high and you are trying to set hive.tez.container.size lower than this value. if this is the case then you will see your task container get launched with the yarn.scheduler.minimum-allocation-mb. the best practice is to set hive.tez.container.size to be the same as or a small multiple (1 or 2 times that) of YARN container size yarn.scheduler.minimum-allocation-mb but never more than yarn.scheduler.maximum-allocation-mb. You want to have headroom for multiple containers to be spun up.
... View more
12-09-2016
12:19 PM
3 Kudos
you can set following property in storm.yaml, if you are using ambari then you need to create custom property as follows Key: nimbus.impersonation.acl
Value: {'stormdev':{'hosts':['host1','host2'],'groups':['group1','group2']}}
restart cluster after setting these property
... View more
12-08-2016
08:51 AM
where to specify this
... View more