hadoop-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hemanth Yamijala <yhema...@gmail.com>
Subject Re: Integrating hadoop with java UI application deployed on tomcat
Date Thu, 30 Aug 2012 10:35:46 GMT
Hi,

The error is talking about hadoop configuration. So probably you need to
put the hadoop core jar in the lib folder. That said, there might be other
dependencies you might need as well. But you can try it out once.

Thanks
hemanth

On Thu, Aug 30, 2012 at 3:53 PM, Visioner Sadak <visioner.sadak@gmail.com>wrote:

> Tried puttin it still same error [?]
>
>
> On Thu, Aug 30, 2012 at 3:06 PM, John Hancock <jhancock1975@gmail.com>wrote:
>
>> You might need to put the apache commons configuration library jar in
>> web-inf/lib to clear this error.
>>
>>
>> On Thu, Aug 30, 2012 at 4:32 AM, Visioner Sadak <visioner.sadak@gmail.com
>> > wrote:
>>
>>> Hi,
>>>
>>>   I have a WAR which is deployed on tomcat server the WAR contains some
>>> java classes which uploads files, will i be able to upload directly in to
>>> hadoop iam using the below code in one of my java class
>>>
>>>        Configuration hadoopConf=new Configuration();
>>>         //get the default associated file system
>>>        FileSystem fileSystem=FileSystem.get(hadoopConf);
>>>        // HarFileSystem harFileSystem= new HarFileSystem(fileSystem);
>>>         //copy from lfs to hdfs
>>>        fileSystem.copyFromLocalFile(new Path("E:/test/GANI.jpg"),new
>>> Path("/user/TestDir/"));
>>>
>>> but its throwing up this error
>>>
>>> java.lang.NoClassDefFoundError: org/apache/hadoop/conf/Configuration
>>>
>>> when this code is run independtly using a single jar deployed in hadoop
>>> bin it wrks fine
>>>
>>>
>>>
>>
>>
>

Mime
View raw message