Re: Versioninfo and platformName issue.

2013-12-11 Thread Szehon Ho
I think you need to explicitly set HADOOP_VERSION to 2.0.0.  Can you try?

I have seen hive script reading this variable and falling back to running
"hadoop version", which in your case it cannot parse due to the cdh suffix.

Thanks
Szehon


On Wed, Dec 11, 2013 at 6:37 AM, Manish  wrote:

> Adam,
>
> Here is what i get when run $ hadoop version
>
> Hadoop 2.0.0-cdh4.4.0
> Subversion file:///var/lib/jenkins/workspace/generic-package-
> ubuntu64-12-04/CDH4.4.0-Packaging-Hadoop-2013-09-03_
> 18-48-35/hadoop-2.0.0+1475-1.cdh4.4.0.p0.23~precise/src/
> hadoop-common-project/hadoop-common -r c0eba6cd38c984557e96a16ccd7356
> b7de835e79
> Compiled by jenkins on Tue Sep  3 19:33:54 PDT 2013
> From source with checksum ac7e170aa709b3ace13dc5f775487180
> This command was run using /usr/lib/hadoop/hadoop-common-
> 2.0.0-cdh4.4.0.jar
>
> Do you have specific idea what could have gone wrong with Hadoop Classpath?
>
> Thank You,
> Manish.
>
>
> On Wednesday 11 December 2013 04:51 AM, Adam Kawa wrote:
>
>> $ hadoop version
>>
>
>


Re: Versioninfo and platformName issue.

2013-12-11 Thread Manish

Adam,

Here is what i get when run $ hadoop version

Hadoop 2.0.0-cdh4.4.0
Subversion 
file:///var/lib/jenkins/workspace/generic-package-ubuntu64-12-04/CDH4.4.0-Packaging-Hadoop-2013-09-03_18-48-35/hadoop-2.0.0+1475-1.cdh4.4.0.p0.23~precise/src/hadoop-common-project/hadoop-common 
-r c0eba6cd38c984557e96a16ccd7356b7de835e79

Compiled by jenkins on Tue Sep  3 19:33:54 PDT 2013
From source with checksum ac7e170aa709b3ace13dc5f775487180
This command was run using /usr/lib/hadoop/hadoop-common-2.0.0-cdh4.4.0.jar

Do you have specific idea what could have gone wrong with Hadoop Classpath?

Thank You,
Manish.


On Wednesday 11 December 2013 04:51 AM, Adam Kawa wrote:

$ hadoop version




Re: Versioninfo and platformName issue.

2013-12-10 Thread Adam Kawa
Hi,

Do you have Hadoop libs properly installed? Does "$ hadoop version" command
run successfully? If true, then It sounds like some classpath issue...


2013/12/10 Manish Bhoge 

> Sent from Rocket Mail via Android
>
>  --
> * From: * Manish Bhoge ;
> * To: * u...@hadoop.apache.org ;
> * Cc: * user@hive.apache.org ;
> * Bcc: * p...@pig.apache.org ;
> * Sent: * Mon, Dec 9, 2013 6:02:24 PM
>
>
> My Hadoop cluster (Psuedo distributed) is up and running but when i run
> hive shell it is giving me below error
> >hive
> manish@manish-bhoge:/usr/lib/hadoop$ hive
> Error: Could not find or load main class
> org.apache.hadoop.util.PlatformName
> Error: Could not find or load main class org.apache.hadoop.util.VersionInfo
> Unable to determine Hadoop version information.
> 'hadoop version' returned:
> Error: Could not find or load main class
> org.apache.hadoop.util.PlatformName
> Error: Could not find or load main class org.apache.hadoop.util.VersionInfo
>
> Can anyone please help me to fix version information and PlatformName. 
> "PlatformName"
> error appear when i run PIG shell:
>
> >pig
> Error: Could not find or load main class
> org.apache.hadoop.util.PlatformName
>
> Suggest the fix for both Hive and PIG error.
>
> Thank You,
> Manish.
>