Hello!

my code works now, if I include gis jar in the classpath in the prompt
while compiling the code using javac and even in the HADOOP_CLASSPATH
variable in the hadoop-env.sh file.

But, since my code required only one jar, it worked. Now, if I got to
bundle all the jars and then include it in the classpath, how do i do it?
Also, to use the third-party jars, do I need to necessarily move them in
the hadoop/lib folder? Or they can be present anywhere..?

--
Thanks & Regards,
Sugandha Naolekar






On Mon, Nov 12, 2012 at 11:06 AM, Sugandha Naolekar
<[email protected]>wrote:

> @Andrea,
>
> 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.
>
> --
> 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
>>>
>>>
>>
>
------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
GeoTools-GT2-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to