- Hadoop Beginner's Guide
- Garry Turkington
- 126字
- 2021-07-29 16:51:38
Time for action – setting up the classpath
To compile any Hadoop-related code, we will need to refer to the standard Hadoop-bundled classes.
Add the Hadoop-1.0.4.core.jar
file from the distribution to the Java classpath as follows:
$ export CLASSPATH=.:${HADOOP_HOME}/Hadoop-1.0.4.core.jar:${CLASSPATH}
What just happened?
This adds the Hadoop-1.0.4.core.jar
file explicitly to the classpath alongside the current directory and the previous contents of the CLASSPATH environment variable.
Once again, it would be good to put this in your shell startup file or a standalone file to be sourced.
推薦閱讀
- Practical Data Analysis
- 控制與決策系統(tǒng)仿真
- 錯(cuò)覺(jué):AI 如何通過(guò)數(shù)據(jù)挖掘誤導(dǎo)我們
- 西門(mén)子S7-200 SMART PLC從入門(mén)到精通
- Getting Started with MariaDB
- Mobile DevOps
- Matplotlib 3.0 Cookbook
- 大數(shù)據(jù)安全與隱私保護(hù)
- Photoshop CS3圖層、通道、蒙版深度剖析寶典
- DevOps:Continuous Delivery,Integration,and Deployment with DevOps
- Hadoop應(yīng)用開(kāi)發(fā)基礎(chǔ)
- 三菱FX/Q系列PLC工程實(shí)例詳解
- 青少年VEX IQ機(jī)器人實(shí)訓(xùn)課程(初級(jí))
- 機(jī)床電氣控制與PLC
- 從祖先到算法:加速進(jìn)化的人類文化