hadoop-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mahadevappa, Shobha" <Shobha.Mahadeva...@nttdata.com>
Subject RE: Integrating hadoop with java UI application deployed on tomcat
Date Tue, 04 Sep 2012 05:48:24 GMT
Try adding the hadoop/conf directory in the TOMCAT's classpath

Ex : CLASSPATH=/usr/local/Apps/hbase-0.90.4/conf:/usr/local/Apps/hadoop-

Shobha M

From: Visioner Sadak [mailto:visioner.sadak@gmail.com]
Sent: 03 September 2012 PM 04:01
To: user@hadoop.apache.org
Subject: Re: Integrating hadoop with java UI application deployed on tomcat

Thanks steve thers nothing in logs and no exceptions as well i found that some file is created
in my F:\user with directory name but its not visible inside my hadoop browse filesystem directories
i also added the config by using the below method
when running thru WAR printing out the filesystem i m getting org.apache.hadoop.fs.LocalFileSystem@9cd8db<mailto:org.apache.hadoop.fs.LocalFileSystem@9cd8db>
when running an independet jar within hadoop i m getting DFS[DFSClient[clientName=DFSClient_296231340,
when running an independet jar i m able to do uploads....

just wanted to know will i have to add something in my classpath of tomcat or is there any
other configurations of core-site.xml that i am missing out..thanks for your help.....

On Sat, Sep 1, 2012 at 1:38 PM, Steve Loughran <stevel@hortonworks.com<mailto:stevel@hortonworks.com>>

well, it's worked for me in the past outside Hadoop itself:


  1.  Turn logging up to DEBUG
  2.  Make sure that the filesystem you've just loaded is what you expect, by logging its
value. It may turn out to be file:///<file:///\\>, because the normal Hadoop site-config.xml
isn't being picked up

On Fri, Aug 31, 2012 at 1:08 AM, Visioner Sadak <visioner.sadak@gmail.com<mailto:visioner.sadak@gmail.com>>
but the problem is that my  code gets executed with the warning but file is not copied to
hdfs , actually i m trying to copy a file from local to hdfs

   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/"));

Disclaimer:This email and any attachments are sent in strictest confidence for the sole use
of the addressee and may contain legally privileged, confidential, and proprietary data. 
If you are not the intended recipient, please advise the sender by replying promptly to this
email and then delete and destroy this email and any attachments without any further use,
copying or forwarding
View raw message