How to run mapreduce program in terminal?

0 votes

Hi. I have done a map reduce program in java now I want to run it in terminal but I am getting how to run it. Please help.

Jan 31 in Big Data Hadoop by Kavi
65 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes

You can reference the below steps:

Step 1: Copy the code to you eclipse and export the jar.

image

Now for exporting the jar part, you should do this:

image

image

Now, browse to where you want to save the jar file.

image

Step 2: Copy the dataset to the hdfs using the below command:

hadoop fs -put wordcountproblem​

Step 3: Check if dataset was stored in hdfs:

image

Step 4: Execute the MapReduce code:

Syntax:

hadoop jar jar_name package_name.class_name input_path_in_hdfs output_path_in_hdfs

image

image

Step 8: Check the output directory for your output

image

answered Jan 31 by Srishti

Related Questions In Big Data Hadoop

0 votes
1 answer

How to run Map Reduce program using Ubuntu terminal?

 I used the following steps to execute it ...READ MORE

answered Aug 7, 2018 in Big Data Hadoop by Neha
• 6,140 points
59 views
0 votes
1 answer

How to run MapReduce program?

Eclipse is already installed in the Edureka ...READ MORE

answered Feb 21 in Big Data Hadoop by Suman
56 views
0 votes
0 answers

How to run Hadoop in Docker containers?

I want to incorporate Hadoop in Docker ...READ MORE

Mar 16, 2018 in Big Data Hadoop by nitinrawat895
• 9,030 points
47 views
0 votes
7 answers

How to run a jar file in hadoop?

I used this command to run my ...READ MORE

answered Dec 10, 2018 in Big Data Hadoop by Dasinto
3,274 views
0 votes
1 answer

Hadoop Mapreduce word count Program

Firstly you need to understand the concept ...READ MORE

answered Mar 16, 2018 in Data Analytics by nitinrawat895
• 9,030 points
1,666 views
0 votes
1 answer

hadoop.mapred vs hadoop.mapreduce?

org.apache.hadoop.mapred is the Old API  org.apache.hadoop.mapreduce is the ...READ MORE

answered Mar 16, 2018 in Data Analytics by nitinrawat895
• 9,030 points
130 views
0 votes
10 answers

hadoop fs -put command?

copy command can be used to copy files ...READ MORE

answered Dec 7, 2018 in Big Data Hadoop by Sujay
8,088 views
0 votes
1 answer

Hadoop dfs -ls command?

In your case there is no difference ...READ MORE

answered Mar 16, 2018 in Big Data Hadoop by kurt_cobain
• 9,260 points
567 views
0 votes
1 answer

How to reduce shuffling cost in map reduce?

You can define a Combiner function, which does the ...READ MORE

answered Jan 22 in Big Data Hadoop by Omkar
• 65,850 points
45 views
0 votes
1 answer

How to select partition in Hive?

Follow these steps: A. Create Database ------------------ create database retail123; B. ...READ MORE

answered Feb 18 in Big Data Hadoop by Omkar
• 65,850 points
60 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.