Re: Fwd: Properties file not loaded with hadoop jar command

2015-09-10 Thread Nishanth S
6/how-do-i-read-a-resource-file-from-a-java-jar-file?rq=1 > > Regards, > Shahab > > On Fri, Jul 17, 2015 at 10:09 AM, Harshit Mathur <mathursh...@gmail.com> > wrote: > >> Are you reading the file in map or reduce task? >> On Jul 17, 2015 2:51 AM, "Nisha

Re: Sorting the inputSplits

2015-08-18 Thread Nishanth S
in the custom input format and return splits ordered anyway your like. On Wed, Jul 22, 2015 at 12:06 PM, Nishanth S chinchu2...@gmail.com wrote: Hey folks, Is their a way to sort the input splits in map reduce.We have a case where there are two files file1 and file2 in the input directory.Since

Sorting the inputSplits

2015-07-22 Thread Nishanth S
Hey folks, Is their a way to sort the input splits in map reduce.We have a case where there are two files file1 and file2 in the input directory.Since we have custominputformat which has issplittable return false always each of these files would be processed by a different mapper.How could

Fwd: Avro Map Reduce for Multiple Schemas

2015-07-20 Thread Nishanth S
Hello, I have to output multiple avro files with different schemas as the output of a mapreduce job.Currently I am achieving this by doing a union of all the schemas in the driver and then by using Avromultipleoutputs to output two files. AvroMultipleOutputs.addNamedOutput(job, a,

Fwd: Properties file not loaded with hadoop jar command

2015-07-16 Thread Nishanth S
Hello, I have built a jar file with maven as build tool which reads properties from a file.I am doing this like InputStream is = ClassLoader.getSystemResourceAsStream((hadoop.properties)) on start iup.No qonce the jar is built I could see that the properties get loaded when I do java -jar

Different outputformats in avro map reduce job

2015-07-08 Thread Nishanth S
Hi All, I have a map reduce job which reads a binary file and needs to output multiple avro files and a textformat file.I was able to output multiplle avro files using (Avromultipleouts).How would I modify the job to output textformat as well along with these avro files.Is it possible.

Re: Packaging multiple map reduce jobs into one Jar

2015-07-01 Thread Nishanth S
for eg: hadoop jar myJar.jar my.testapp.code1.MyMain1 arg1 arg2 hadoop jar myJar.jar my.testapp.code2.MyMain2 arg1 arg2 BR, Harshit On Wed, Jul 1, 2015 at 3:51 AM, Nishanth S chinchu2...@gmail.com wrote: Hello, Is there a way I can package multiple

Packaging multiple map reduce jobs into one Jar

2015-06-30 Thread Nishanth S
Hello, Is there a way I can package multiple map reduce jobs into one jar file and then invoke them using hadoop jar.I am using maven as the build tool.What should be the main class in the manifest file in this case?. Thanks, Nishan

Fwd: Avro MultipleOutputs in Mapreduce

2015-06-25 Thread Nishanth S
Hello All, We are using avro 1.7.7 and hadoop 2.5.1 in our project.We need to process a mixed mode binary file using map reduce and have the output as multiple avro files and each of these avro files would have different avro schemas.I looked at AvroMultipleOutputs class but did not completely

Avro MultipleOutputs in Mapreduce

2015-06-24 Thread Nishanth S
Hello All, We are using avro 1.7.7 and hadoop 2.5.1 in our project.We need to process a mixed mode binary file using map reduce and have the output as multiple avro files and each of these avro files would have different avro schemas.I looked at AvroMultipleOutputs class but did not completely

Help with hadoop 2.5.2 in windows

2015-06-18 Thread Nishanth S
Hey friends. I build hadoop 2.5.2 on my pc and I am able to run map reduce jobs locally after setting hadoop_home.I am trying to set this up in another machine by using the same tar file that i built in mine but getting the below error. Can you please help Exception in thread main

Re: Help with Kerberos

2015-05-06 Thread Nishanth S
. Original message From: Nishanth S chinchu2...@gmail.com Date:05/05/2015 6:33 PM (GMT-05:00) To: user@hadoop.apache.org Subject: Re: Help with Kerberos Thanks Chris.I checked the configuration files and see that these properties are in place.I am trying to connect to hadoop cluster

Re: Help with Kerberos

2015-05-05 Thread Nishanth S
the secure mode documentation. It has more details on this and other relevant configuration properties. http://hadoop.apache.org/docs/r2.7.0/hadoop-project-dist/hadoop-common/Secu reMode.html I hope this helps. --Chris Nauroth From: Nishanth S chinchu2...@gmail.com Reply-To: user

Help with Kerberos

2015-05-05 Thread Nishanth S
Hello , I am getting the below exception when trying to run a simple map reduce from a machine outside the hadoop cluster.This is the kerberos code I am using.Please help org.apache.hadoop.conf.Configuration conf = new org.apache.hadoop.conf.Configuration();

[no subject]

2015-05-02 Thread Nishanth S
Hello All, I am looking to write a map only program in java .The output of which are two avro files.There can be two types of records in the input file(let us say lion and tiger) and based on an identifier they are processed and written to two different avro files using

Re: How to find bottlenecks of the cluster ?

2015-03-01 Thread Nishanth S
This is a vast topic.Can you tell what components are there in your data pipe line and how data flows in to system and the way its processed.There are several inbuilt tests like testDFSIO and terasort that you can run. -Nishan On Sun, Mar 1, 2015 at 9:45 PM, Krish Donald gotomyp...@gmail.com