You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-user@hadoop.apache.org by Manish Bhoge <ma...@rocketmail.com> on 2013/12/10 07:16:40 UTC

Versioninfo and platformName issue.

Sent from Rocket Mail via Android


Re: Versioninfo and platformName issue.

Posted by Manish <ma...@rocketmail.com>.
PATH variable is correct. When everyone has mentioned that this is the 
CLASSPATH issue i couldn't locate what exactly is the issue with CLASSPATH.

here is what i have set up in my .profile file

export CLASSPATH=$CLASSPATH:/usr/lib/hadoop/hadoop-common-2.0.0-cdh4.4.0.jar

Thank you,
Manish.

On Wednesday 11 December 2013 09:24 PM, Hardik Pandya wrote:
> its a classpath issue, also make sure your PATH is correct
>
> export HIVE_HOME=/home/username/yourhivedir
> $ export PATH=$HIVE_HOME/bin:$PATH
>
>
> On Wed, Dec 11, 2013 at 9:37 AM, Manish <manishbhoge@rocketmail.com 
> <ma...@rocketmail.com>> 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 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.

Posted by Manish <ma...@rocketmail.com>.
PATH variable is correct. When everyone has mentioned that this is the 
CLASSPATH issue i couldn't locate what exactly is the issue with CLASSPATH.

here is what i have set up in my .profile file

export CLASSPATH=$CLASSPATH:/usr/lib/hadoop/hadoop-common-2.0.0-cdh4.4.0.jar

Thank you,
Manish.

On Wednesday 11 December 2013 09:24 PM, Hardik Pandya wrote:
> its a classpath issue, also make sure your PATH is correct
>
> export HIVE_HOME=/home/username/yourhivedir
> $ export PATH=$HIVE_HOME/bin:$PATH
>
>
> On Wed, Dec 11, 2013 at 9:37 AM, Manish <manishbhoge@rocketmail.com 
> <ma...@rocketmail.com>> 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 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.

Posted by Manish <ma...@rocketmail.com>.
PATH variable is correct. When everyone has mentioned that this is the 
CLASSPATH issue i couldn't locate what exactly is the issue with CLASSPATH.

here is what i have set up in my .profile file

export CLASSPATH=$CLASSPATH:/usr/lib/hadoop/hadoop-common-2.0.0-cdh4.4.0.jar

Thank you,
Manish.

On Wednesday 11 December 2013 09:24 PM, Hardik Pandya wrote:
> its a classpath issue, also make sure your PATH is correct
>
> export HIVE_HOME=/home/username/yourhivedir
> $ export PATH=$HIVE_HOME/bin:$PATH
>
>
> On Wed, Dec 11, 2013 at 9:37 AM, Manish <manishbhoge@rocketmail.com 
> <ma...@rocketmail.com>> 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 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.

Posted by Manish <ma...@rocketmail.com>.
PATH variable is correct. When everyone has mentioned that this is the 
CLASSPATH issue i couldn't locate what exactly is the issue with CLASSPATH.

here is what i have set up in my .profile file

export CLASSPATH=$CLASSPATH:/usr/lib/hadoop/hadoop-common-2.0.0-cdh4.4.0.jar

Thank you,
Manish.

On Wednesday 11 December 2013 09:24 PM, Hardik Pandya wrote:
> its a classpath issue, also make sure your PATH is correct
>
> export HIVE_HOME=/home/username/yourhivedir
> $ export PATH=$HIVE_HOME/bin:$PATH
>
>
> On Wed, Dec 11, 2013 at 9:37 AM, Manish <manishbhoge@rocketmail.com 
> <ma...@rocketmail.com>> 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 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.

Posted by Hardik Pandya <sm...@gmail.com>.
its a classpath issue, also make sure your PATH is correct

export HIVE_HOME=/home/username/yourhivedir
$ export PATH=$HIVE_HOME/bin:$PATH


On Wed, Dec 11, 2013 at 9:37 AM, Manish <ma...@rocketmail.com> 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.

Posted by Szehon Ho <sz...@cloudera.com>.
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 <ma...@rocketmail.com> 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.

Posted by Hardik Pandya <sm...@gmail.com>.
its a classpath issue, also make sure your PATH is correct

export HIVE_HOME=/home/username/yourhivedir
$ export PATH=$HIVE_HOME/bin:$PATH


On Wed, Dec 11, 2013 at 9:37 AM, Manish <ma...@rocketmail.com> 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.

Posted by Hardik Pandya <sm...@gmail.com>.
its a classpath issue, also make sure your PATH is correct

export HIVE_HOME=/home/username/yourhivedir
$ export PATH=$HIVE_HOME/bin:$PATH


On Wed, Dec 11, 2013 at 9:37 AM, Manish <ma...@rocketmail.com> 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.

Posted by Hardik Pandya <sm...@gmail.com>.
its a classpath issue, also make sure your PATH is correct

export HIVE_HOME=/home/username/yourhivedir
$ export PATH=$HIVE_HOME/bin:$PATH


On Wed, Dec 11, 2013 at 9:37 AM, Manish <ma...@rocketmail.com> 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.

Posted by Manish <ma...@rocketmail.com>.
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.

Posted by Manish <ma...@rocketmail.com>.
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.

Posted by Manish <ma...@rocketmail.com>.
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.

Posted by Manish <ma...@rocketmail.com>.
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.

Posted by Manish <ma...@rocketmail.com>.
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.

Posted by Adam Kawa <ka...@gmail.com>.
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 <ma...@rocketmail.com>

> Sent from Rocket Mail via Android
>
>  ------------------------------
> * From: * Manish Bhoge <ma...@rocketmail.com>;
> * To: * user@hadoop.apache.org <us...@hadoop.apache.org>;
> * Cc: * user@hive.apache.org <us...@hive.apache.org>;
> * Bcc: * pig@pig.apache.org <pi...@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.
>

Re: Versioninfo and platformName issue.

Posted by Adam Kawa <ka...@gmail.com>.
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 <ma...@rocketmail.com>

> Sent from Rocket Mail via Android
>
>  ------------------------------
> * From: * Manish Bhoge <ma...@rocketmail.com>;
> * To: * user@hadoop.apache.org <us...@hadoop.apache.org>;
> * Cc: * user@hive.apache.org <us...@hive.apache.org>;
> * Bcc: * pig@pig.apache.org <pi...@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.
>

Re: Versioninfo and platformName issue.

Posted by Adam Kawa <ka...@gmail.com>.
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 <ma...@rocketmail.com>

> Sent from Rocket Mail via Android
>
>  ------------------------------
> * From: * Manish Bhoge <ma...@rocketmail.com>;
> * To: * user@hadoop.apache.org <us...@hadoop.apache.org>;
> * Cc: * user@hive.apache.org <us...@hive.apache.org>;
> * Bcc: * pig@pig.apache.org <pi...@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.
>

Re: Versioninfo and platformName issue.

Posted by Adam Kawa <ka...@gmail.com>.
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 <ma...@rocketmail.com>

> Sent from Rocket Mail via Android
>
>  ------------------------------
> * From: * Manish Bhoge <ma...@rocketmail.com>;
> * To: * user@hadoop.apache.org <us...@hadoop.apache.org>;
> * Cc: * user@hive.apache.org <us...@hive.apache.org>;
> * Bcc: * pig@pig.apache.org <pi...@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.
>

Re: Versioninfo and platformName issue.

Posted by Adam Kawa <ka...@gmail.com>.
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 <ma...@rocketmail.com>

> Sent from Rocket Mail via Android
>
>  ------------------------------
> * From: * Manish Bhoge <ma...@rocketmail.com>;
> * To: * user@hadoop.apache.org <us...@hadoop.apache.org>;
> * Cc: * user@hive.apache.org <us...@hive.apache.org>;
> * Bcc: * pig@pig.apache.org <pi...@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.
>