Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9255397
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T11:42:31+00:00 2026-06-18T11:42:31+00:00

I have hadoop 1.0.4 installed. I have modified the /usr/bin/hadoop file by adding the

  • 0

I have hadoop 1.0.4 installed. I have modified the /usr/bin/hadoop file by adding the following:

HADOOP_DEBUG=”-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=5000″

elif [ “$COMMAND” = “jar” ] ; then

CLASS=org.apache.hadoop.util.RunJar

HADOOP_OPTS=”$HADOOP_OPTS $HADOOP_CLIENT_OPTS”

elif [ “$COMMAND” = “jar-debug” ] ; then

CLASS=org.apache.hadoop.util.RunJar

HADOOP_OPTS=”$HADOOP_OPTS $HADOOP_CLIENT_OPTS $HADOOP_DEBUG”

COMMAND=”jar”

This way I can run “hadoop jar SomeJar.jar SomeClass” to launch normally or run “hadoop jar-debug SomeJar.jar SomeClass” to launch in debug mode. This works, except when I want to pass command line arguments into my class (such as in the WordCount example). For example running:

“hadoop jar-debug WordCount.jar WordCount InputDir OutputDir”

with a breakpoint on the first line in the main class reveals that String[] args is an empty string (which obviously causes the program to fail later). If I run it using the normal jar command it works fine (so obviously the command line args are get passed in just fine using regular jar).

Anyone have any idea whats going on here? I am seriously stuck. Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T11:42:32+00:00Added an answer on June 18, 2026 at 11:42 am

    Update for anyone in the future who experiences this problem:

    If the java remote debugger is launched listening to the wrong IP Address (IE listening to a remote namenode instead of localhost), the JRD will still launch but command line parameters are not passed in.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have installed hadoop 1.0.1 in my ubuntu laptop by a deb install file.
I have installed Hadoop in linux cluster. When I try to start the server
I have Installed hadoop and hbase cdh3u2. In hadoop i have a file at
I have a very big hadoop sequence file in the hdfs. what is the
I am attempting to connect to Microsoft SQL Server using Sqoop. I have installed
I have an EC2 image that I made with Hadoop installed. However, I set
I have sucessfully installed Hypertable on top of Hadoop on a small cluster of
I want to try and work with Hadoop on Windows. I have installed the
The problem is hduser@saket-K53SM:/usr/local/hadoop$ jps The program 'jps' can be found in the following
I have Hadoop 0.20 , i am starting it by running $HADOOP/bin/start-all.sh. Every demon

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.