Hi Sugandha,

> I did mention the geo jars in the GEO_CLASSPATH variable in the .bashrc
> file. But, that didnt work. Although, the HADOOP_CLASSPATH variable in the
> hadoop-env.sh file is still untouched.
>
> Thus, do I need to mention the locations of my geo jars in that variable and
> then run the code..? Will that work?
>
> Basically, all I got to do is, include the thrid-party jars in the hadoop's
> classpath so that, the hadoop MR programs could be run with additional
> functionalities. Like, running GIS programs over HADOOP, or doing some HBASE
> relevant operations over hadoop, etc.

have a look at this post, it should help.
http://blog.cloudera.com/blog/2011/01/how-to-include-third-party-libraries-in-your-map-reduce-job/

Cheers,
Andrea


>
> --
> Thanks & Regards,
> Sugandha Naolekar
>
>
>
>
>
>
> On Fri, Nov 9, 2012 at 2:00 PM, Jody Garnett <[email protected]> wrote:
>>
>> Does service provider interface lookup work with Hadoop? That is how we
>> look stuff up on the class path.
>>
>> The other common way to screw things up is in a system which manages jars
>> into different classpaths ( like OSGi )
>>
>> --
>> Jody Garnett
>>
>> On 09/11/2012, at 6:01 AM, Sugandha Naolekar <[email protected]>
>> wrote:
>>
>> The ShapefileDataStore class not found in main is the error. Inspite of
>> specifying all the relevant jars in the classpath. Also, the same code works
>> in Eclipse. But not, in hadoop's prompt.
>>
>>
>> --
>> Thanks & Regards,
>> Sugandha Naolekar
>>
>>
>>
>>
>>
>>
>> On Fri, Nov 9, 2012 at 1:13 PM, Jody Garnett <[email protected]>
>> wrote:
>>>
>>> No experience with Hadoop - what kind of errors are you getting?
>>>
>>> --
>>> Jody Garnett
>>>
>>> On 09/11/2012, at 5:08 AM, Sugandha Naolekar <[email protected]>
>>> wrote:
>>>
>>> Hello!
>>>
>>> I am running a GIS code through hadoop's prompt in following manner:\
>>>
>>> -> Wrote the GIS code in Eclipse including all the GIS jars (relevant).
>>> -> Went into the dir. where my eclipse workspace is.
>>> -> Compiled the code by adding all the relevant jars in the classpath.
>>> *(The compilation was successful).
>>> -> Built the jar.
>>> -> Now running the same jar using hadoop: bin/hadoop jar
>>> my_jar_file_name.jar my_pkg_structure.Main_class_file
>>>
>>> Now, inspite of the code being error free, when i try to execute through
>>> hadoop's propmpt, it gives me multiple issues.
>>>
>>> Is there a workable alternative way to do the same without any hassles?
>>>
>>> Also note, the gid code runs beautifully in eclipse. Since, I have to do
>>> Geo processing over hadoop, I need to run it through hadoop's prompt.
>>>
>>> --
>>> Thanks & Regards,
>>> Sugandha Naolekar
>>>
>>>
>>>
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Everyone hates slow websites. So do we.
>>> Make your web apps faster with AppDynamics
>>> Download AppDynamics Lite for free today:
>>> http://p.sf.net/sfu/appdyn_d2d_nov
>>>
>>> _______________________________________________
>>> GeoTools-GT2-Users mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>>
>>
>
>
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_d2d_nov
> _______________________________________________
> GeoTools-GT2-Users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_nov
_______________________________________________
GeoTools-GT2-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to