deptlab:hadoop:gettingstarted
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| deptlab:hadoop:gettingstarted [2017/01/15 20:31] – [Setting Up Input Files] localadmin | deptlab:hadoop:gettingstarted [2025/04/23 16:40] (current) – [Getting Started with Hadoop] localadmin | ||
|---|---|---|---|
| Line 2: | Line 2: | ||
| This is a short tutorial on using Hadoop. | This is a short tutorial on using Hadoop. | ||
| + | |||
| + | Hadoop commands and formats change at times. If the **hadoop fs < | ||
| We'll go through the process of compiling, packaging, and running a simple Hadoop program. | We'll go through the process of compiling, packaging, and running a simple Hadoop program. | ||
| Line 9: | Line 11: | ||
| ===== Logging In ===== | ===== Logging In ===== | ||
| - | First, make sure you can log in to the head node with SSH, currently at zoidberg.cs.ndsu.nodak.edu. You can log in to this server with your CS Domain password or your Blackboard | + | First, make sure you can log in to the head node with SSH, currently at zoidberg.cs.ndsu.nodak.edu. You can log in to this server with your CS Domain password |
| If you have trouble logging in: | If you have trouble logging in: | ||
| Line 66: | Line 68: | ||
| In this case, we use the wc.jar JAR file, running the class ' | In this case, we use the wc.jar JAR file, running the class ' | ||
| + | ===== View Output ===== | ||
| + | You can check the output directory with: | ||
| + | |||
| + | < | ||
| + | hadoop fs -ls / | ||
| + | </ | ||
| + | |||
| + | You should then see something similar to: | ||
| + | |||
| + | < | ||
| + | helsene@zoidberg: | ||
| + | Found 2 items | ||
| + | -rw-r--r-- | ||
| + | </ | ||
| + | |||
| + | The ' | ||
| + | |||
| + | < | ||
| + | helsene@zoidberg: | ||
| + | Bye 1 | ||
| + | Goodbye 1 | ||
| + | Hadoop 2 | ||
| + | Hello 2 | ||
| + | World 2 | ||
| + | </ | ||
| + | |||
| + | |||
| + | |||
| + | ==== Notes on Hadoop 2.8.5 ==== | ||
| + | May need to run: export HADOOP_CLASSPATH=${JAVA_HOME}/ | ||
| + | |||
| + | Compile: hadoop com.sun.tools.javac.Main WordCount.java | ||
| + | |||
| + | Make Jar: jar cf wc.jar WordCount*.class | ||
| + | |||
| + | Execute jar: hadoop jar wc.jar WordCount / | ||
deptlab/hadoop/gettingstarted.1484512292.txt.gz · Last modified: by localadmin
