hadoop-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pumudu Ruhunage <pumud...@gmail.com>
Subject Re: Issue with setting JAVA_HOME
Date Fri, 22 May 2015 19:21:28 GMT
As Olivier mention jdk contains jre. Since jre is subset of jdk there can't
be any issues. unless you have to use different java version you can always
point JAVA_HOME to jdk with following command[1] in terminal/CLI. echo
JAVA_HOME to verify[2] if it has set properly before execute.

[1] export JAVA_HOME=/path_to_java_home/1.6.0.jdk/
[2] echo $JAVA_HOME

On 22 May 2015 at 20:26, Divya Ravichandran <div1390ravi@gmail.com> wrote:

>
> Yes, correct. But is this expected to cause any issues in production?
>
> And can JAVA_HOME be changed on the fly?
>
> Thanks,
> Divya
> On May 22, 2015 9:53 AM, "Olivier Renault" <orenault@hortonworks.com>
> wrote:
>
>>  You should install the JDK and set JAVA_HOME to the folder of your JDK.
>> FYI, the JDK includes the JRE.
>> https://docs.oracle.com/javase/7/docs/webnotes/install/
>>
>>  Olivier
>>
>>   From: Divya Ravichandran
>> Reply-To: "user@hadoop.apache.org"
>> Date: Friday, 22 May 2015 14:47
>> To: "user@hadoop.apache.org"
>> Subject: Issue with setting JAVA_HOME
>>
>>   Hello,
>>
>> I am trying to run sqoop and yarn on the same machine.
>>
>> Sqoop needs JAVA_HOME be set to JDK whereas yarn requires JRE(which is
>> the recommended setting).
>>
>> Can this setting be changed dynamically so it can pick up JDK for sqoop
>> and JRE for yarn?
>>
>> Or any workarounds possible?
>>
>> Please let me know!
>>
>> Thanks,
>> Divya
>>
>


-- 
Pumudu Ruhunage

email : pumudu88@gmail.com
work email : pumudu@wso2.com
Blog : http://pumuduruhunage.blogspot.com/

Mime
View raw message