Where do i update HADOOP_USER_CLASSPATH_FIRST=true and HADOOP_CLASSPATH in cloudera manager so that it has cluster wide effect.
I manually changed the seeting in /etc/hadoop/conf/hadoop-env.sh. However, i dont see that effect. Basically, i want to prepend classpath when starting hiveserver2 and metastore. This works fine on HDP when these parameters are set in hadoop-env.sh via ambari.
I also want to override jars when i run mapreduce job. That is when i run wordcount example using hadoop as well as yarn. Where do i place these variables in cloudera manager ?
I tried following option:
CM > Yarn > Congihuration > search for "YARN (MR2 Included) Service Environment Advanced Configuration Snippet (Safety Valve)"
This did not help. It still picks the old jars
Which client environment ?
I changed the following option:
CM > Yarn > Configuration > Gateway Client Environment Advanced Configuration Snippet (Safety Valve) for hadoop-env.sh
It has no effect. It is still picks the default library, not the one which i am trying to override.
Service Environment Advanced Configuration works fine in case of hive.
My bad. I forgot to deploy, stale configuration after making the changes.
CM > Yarn > Configuration > Gateway Client Environment Advanced Configuration Snippet (Safety Valve) works fine. I am able to override the default jars
@Harsh J How would I do this just for one job ?.
I tried using below setting but it is not working. The issue is that I want to use a version of jersey which I bundled into my fat jar,however gateway node has an older version of that jar and it loads a class from there resulting in a NosSuchMethodException .My application is not a map reduce job and I run it by using hadoop jar and running on 5.14.4