Hadoop 20.2 has HADOOP_HEAPSIZE (may be commented) defined in 
$HADOOP_CONF_DIR/hadoop-env.sh. $HADOOP_HOME/bin/hadoop uses this shell 
variable and constructs the max heap size.

1. Can you change HADOOP_HEAPSIZE and try? Either export on command line or 
change hadoop-env.sh.
2. Worst case - run 'hadoop' with 'set -x' turned on and you should be able to 
figure out whats wrong.

On Feb 28, 2011, at 5:16 PM, bharath vissapragada wrote:

> I am also getting this error .. any suggestions?
> 
> hive : 0.6
> had :0.20.2
> 
> =========
> On Mon, Jun 7, 2010 at 1:03 AM, Shuja Rehman <shujamug...@gmail.com> wrote:
>> Hi all
>> Thanks for reply.
>> I have changed the heap size to 1024, then 512 then even 100 in the
>> specified file. But i am still getting this error.
>> I think i need to change the size to some other file also as the error
>> message contain the same 4096.
>> 
>> Invalid maximum heap size: -Xmx4096m
>> 
>> Kindly let me know if any solution exits ??
>> 
>> 
>> Thanks
>> 
>> 
>> On Sat, Jun 5, 2010 at 8:35 PM, Sammy Yu <s...@brightedge.com> wrote:
>>> 
>>> Hi Shuja,
>>>    I ran into a similar issue on trunk, you can lower the HADOOP_HEAPSIZE
>>> value in the file ($hive_directory/bin/ext/util/execHiveCmd.sh) to something
>>> smaller than 1024.
>>> Cheers,
>>> Sammy
>>> 
>>> On Sat, Jun 5, 2010 at 9:15 AM, Shuja Rehman <shujamug...@gmail.com>
>>> wrote:
>>>> 
>>>>> Hi
>>>>> I have installed hadoop and hive according to starter kits on ubuntu 10.
>>>>> hadoop is running fine. but when i write this command
>>>>> 
>>>>> root@digitalvision:/usr/local/hadoop/hive/build/dist# bin/hive
>>>>> 
>>>>> i get this following error.
>>>>> 
>>>>> Invalid maximum heap size: -Xmx4096m
>>>>> The specified size exceeds the maximum representable size.
>>>>> Could not create the Java virtual machine.
>>>>> 
>>>>> Kindly let me know how to solve this problem
>>>>> Thanks
>>>>> 
>>>>> --
>>>>> Regards
>>>>> Shuja-ur-Rehman Baig
>>>>> _________________________________
>>>>> MS CS - School of Science and Engineering
>>>>> Lahore University of Management Sciences (LUMS)
>>>>> Sector U, DHA, Lahore, 54792, Pakistan
>>>>> Cell: +92 3214207445
>>>> 
>>>> 
>>>> 
>>>> 
>>> 
>>> 
>>> 
>>> 
>> 
>> 
>> 
>> --
>> Regards
>> Shuja-ur-Rehman Baig
>> _________________________________
>> MS CS - School of Science and Engineering
>> Lahore University of Management Sciences (LUMS)
>> Sector U, DHA, Lahore, 54792, Pakistan
>> Cell: +92 3214207445
>> 
> 
> 
> 
> -- 
> Regards,
> Bharath .V
> w:http://research.iiit.ac.in/~bharath.v

Reply via email to