Re: Load .so library error when Hadoop calls JNI interfaces

2009-04-30 Thread Ian jonhson
Thanks for answering. I run my Hadoop in single node, not cluster mode. On Thu, Apr 30, 2009 at 11:21 AM, jason hadoop jason.had...@gmail.com wrote: You need to make sure that the shared library is available on the tasktracker nodes, either by installing it, or by pushing it around via the

Re: Load .so library error when Hadoop calls JNI interfaces

2009-04-30 Thread He Yongqiang
put your .so file in every traker's Hadoop-install/lib/native/Linux-xxx-xx/ Or In your code,try to do String oldPath=System.getProperty(java.library.path); System.setProperty(java.library.path, oldPath==null? local_path_of_lib_file:oldPath+pathSeparator +local_path_of_lib_file))

Re: Load .so library error when Hadoop calls JNI interfaces

2009-04-30 Thread He Yongqiang
Does hadoop now support jni calls in Mappers or Reducers? If yes, how? If not, I think we should create a jira issue for supporting that. On 09-4-30 下午4:02, Ian jonhson jonhson@gmail.com wrote: Thanks for answering. I run my Hadoop in single node, not cluster mode. On Thu, Apr

Re: I need help

2009-04-30 Thread Steve Loughran
Razen Alharbi wrote: Thanks everybody, The issue was that hadoop writes all the outputs to stderr instead of stdout and i don't know why. I would really love to know why the usual hadoop job progress is written to stderr. because there is a line in log4.properties telling it to do just that?

Re: Load .so library error when Hadoop calls JNI interfaces

2009-04-30 Thread Rakhi Khatwani
Hi Jason, when will the full version of your book be available?? On Thu, Apr 30, 2009 at 8:51 AM, jason hadoop jason.had...@gmail.comwrote: You need to make sure that the shared library is available on the tasktracker nodes, either by installing it, or by pushing it around via the

Re: Load .so library error when Hadoop calls JNI interfaces

2009-04-30 Thread Ian jonhson
2009/4/30 He Yongqiang heyongqi...@software.ict.ac.cn: put your .so file in every traker's Hadoop-install/lib/native/Linux-xxx-xx/ Or In your code,try to do String oldPath=System.getProperty(java.library.path); System.setProperty(java.library.path, oldPath==null?

Re: Load .so library error when Hadoop calls JNI interfaces

2009-04-30 Thread Ian jonhson
You mean that the current hadoop does not support JNI calls, right? Are there any solution to achieve the calls from C interfaces? 2009/4/30 He Yongqiang heyongqi...@software.ict.ac.cn: Does hadoop now support jni calls in Mappers or Reducers? If yes, how? If not, I think we should create a

Re: unable to see anything in stdout

2009-04-30 Thread Aaron Kimball
First thing I would do is to run the job in the local jobrunner (as a single process on your local machine without involving the cluster): JobConf conf = . // set other params, mapper, etc. here conf.set(mapred.job.tracker, local); // use localjobrunner conf.set(fs.default.name, file:///); //

Re: Specifying System Properties in the had

2009-04-30 Thread Aaron Kimball
So you want a different -Dfoo=test on each node? It's probably grabbing the setting from the node where the job was submitted, and this overrides the settings on each task node. Try adding finaltrue/final to the property block on the tasktrackers, then restart Hadoop and try again. This will

Re: Specifying System Properties in the had

2009-04-30 Thread Tom White
Another way to do this would be to set a property in the Hadoop config itself. In the job launcher you would have something like: JobConf conf = ... conf.setProperty(foo, test); Then you can read the property in your map or reduce task. Tom On Thu, Apr 30, 2009 at 3:25 PM, Aaron Kimball

Infinite Loop Resending status from task tracker

2009-04-30 Thread Lance Riedel
Has anyone seen this before? Our task tracker produced a 2.7 gig log file in a few hours. The entry is all the same (every 2 ms): 2009-04-30 02:34:40,207 INFO org.apache.hadoop.mapred.TaskTracker: Resending 'status' to 'ec2-xx-xx-xx-xx.compute-1.amazonaws.com' with reponseId '5341

Re: Master crashed

2009-04-30 Thread Mayuran Yogarajah
Alex Loddengaard wrote: I'm confused. Why are you trying to stop things when you're bringing the name node back up? Try running start-all.sh instead. Alex Won't that try to start the daemons on the slave nodes again? They're already running. M On Tue, Apr 28, 2009 at 4:00 PM, Mayuran

Re: Infinite Loop Resending status from task tracker

2009-04-30 Thread Todd Lipcon
Hi Lance, Can I ask what version you were running when you saw this? Is it reproducible? I'm trying to look at the code path that might produce such a behavior and want to make sure I'm looking at the right version. Thanks -Todd On Thu, Apr 30, 2009 at 9:33 AM, Lance Riedel la...@dotspots.com

Re: Infinite Loop Resending status from task tracker

2009-04-30 Thread Lance Riedel
I have not been able to reproduce. We are using version 19.1 with the following patches: 4780-2v19.patch (Jira 4780) closeAll3.patch (Jira 3998) Thanks, Lance On Apr 30, 2009, at 10:40 AM, Todd Lipcon wrote: Hi Lance, Can I ask what version you were running when you saw this? Is it

Re: Infinite Loop Resending status from task tracker

2009-04-30 Thread Todd Lipcon
Hey Lance, Did you see any error messages in the JobTracker logs around the time this started? I think I understand how this might happen. Thanks, -Todd On Thu, Apr 30, 2009 at 10:45 AM, Lance Riedel la...@dotspots.com wrote: I have not been able to reproduce. We are using version 19.1 with

Re: Infinite Loop Resending status from task tracker

2009-04-30 Thread Lance Riedel
Here are the job tracker logs from the same time (and yes.. there is something there!!): 2009-04-30 02:34:28,484 INFO org.apache.hadoop.mapred.JobTracker: Serious problem. While updating status, cannot find taskid attempt_200904291917_0252_r_03_0 2009-04-30 02:34:40,215 INFO

Re: Infinite Loop Resending status from task tracker

2009-04-30 Thread Todd Lipcon
Hey Lance, Thanks for the logs. They definitely confirmed my suspicion. There are two problems here: 1) If the JobTracker throws an exception during processing of a heartbeat, the tasktracker retries with no delay, since lastHeartbeat isn't updated in TaskTracker.offerService. This is related to

Re: Master crashed

2009-04-30 Thread Scott Carey
On 4/30/09 10:18 AM, Mayuran Yogarajah mayuran.yogara...@casalemedia.com wrote: Alex Loddengaard wrote: I'm confused. Why are you trying to stop things when you're bringing the name node back up? Try running start-all.sh instead. Alex Won't that try to start the daemons on the

Implementing compareTo in user-written keys where one extends the other is error prone

2009-04-30 Thread Marshall Schor
Hi. I had difficulties in getting Reduce sorting to wor - it took me a good art of a day to figure out what was going wrong, so I'm sharing this in hopes of earning something from the community or getting hadoop improved to avoid thisind of error for future users. I have 2 key classes, one holds

classpath for finding Key classes

2009-04-30 Thread Marshall Schor
Hi - I have a classpath question. In hadoop, one can define the Java classes to be used for Keys and Values. I am doing this. When I make my giant Jar file holding everything needed for running my application, I include these classes. However, I've discovered that that is not enough it seems

Re: Implementing compareTo in user-written keys where one extends the other is error prone

2009-04-30 Thread Owen O'Malley
If you use custom key types, you really should be defining a RawComparator. It will perform much much better. -- Owen