banner



How To Check Hadoop Is Installed Or Not In Ubuntu

iii Answers three

You can run the mapreduce howdy globe job. Note that your paths might be slightly dissimilar:

  1. HADOOP_HOME is the dir, where you accept hadoop installed.
  2. exemplary test input file existing in <HADOOP_HOME>/input/file01
  3. fix dir structure in your hdfs:
    • <HADOOP_HOME>/bin/hdfs dfs -mkdir /wordcount
    • <HADOOP_HOME>/bin/hdfs dfs -mkdir /wordcount/input
    • <HADOOP_HOME>/bin/hdfs dfs -mkdir /wordcount/output
  4. put file01 file into hdfs:
    • <HADOOP_HOME>/bin/hdfs dfs -put <HADOOP_HOME>/input/file01 /wordcount/input
  5. go to the dir with examples jar:
    • cd <HADOOP_HOME>/share/hadoop/mapreduce/lib-examples (in my instance, the jar has name hadoop-mapreduce-examples-2.3.0.jar)
  6. fire away the mapred job <HADOOP_HOME>/bin/hadoop jar ./hadoop-mapreduce-examples-2.3.0.jar wordcount /wordcount/input/file01 /wordcount/output/file01-output

The job should cease successfully, and you should see words from file01 counted and stored in the /wordcount/output/file01-output dir

                <HADOOP_HOME>/bin/hdfs -cat /wordcount/output/file01-output/part-r-00000                              

answered May 1, 2022 at 14:32

user avatar

5

  • hadoop/bin/hdfs is an executable that performs different operations of the hadoop filesystem, information technology is non a directory. If you accept no executable (shell script most likely) in bin dir, the name of the executable might exist something unlike, but it must be there.

    May three, 2022 at 7:00

  • And I can run across on your screenshot the hdfs script is in your directory, so information technology looks all right.

    May 3, 2022 at vii:02

  • Apply hadoop/bin/hdfs dfs -put to put a file to hadopp. Sorrt I made a mistake here is the instance.

    May three, 2022 at 9:58

  • OK, thx. How can I admission to the /wordcount/output/file01-output directory? I cant notice it on my file organisation?!

    May 3, 2022 at xi:00

  • You don't need to accept /wordcount/output/file01-output existing. It will be created past the mapreduce job. Merely brand sure you have the /wordcount/output dir in hdfs

    May three, 2022 at 14:29

answered May ane, 2022 at 14:38

user avatar

I would download the examples jar file or try to observe it and run the Quasi Monte Carlo simulation. That's probably the easiest to run and most straightforward to see if its working.

Just run a

              find . -name *examples*                          

in your hadoop install directory. Once yous find that, only top your machines equally information technology is running to see if they're getting the expected number of threads, load, etc.

answered May 1, 2022 at xiv:23

user avatar

Non the answer you're looking for? Browse other questions tagged java maven hadoop mahout or ask your own question.

Source: https://stackoverflow.com/questions/23408937/test-if-hadoop-is-correctly-working

Posted by: elamquares.blogspot.com

0 Response to "How To Check Hadoop Is Installed Or Not In Ubuntu"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel