ERROR: MaxTemperature is not COMMAND nor fully qualified CLASSNAME
今天按照Hadoop權威指南寫了一個示例專案,然後拿到伺服器執行,然後報標題的錯誤。(前提是已經安裝好了hadoop)
異常顯示為:
顯示找不到這個類。通過網上百度,發現需要寫全類名,根據自己的專案中的全路徑名進行補充:
依舊報錯,但是這次報錯內容換了,證明剛才的修正是對的。
但是出現新問題繼續解決。通過異常看顯示的是hadoop中的檔案系統使用的是hdfs這裡沒有書中說的sample.txt。(這個檔案我是放在執行命令的當前資料夾下)
所以需要的是將檔案放到hadoop預設的檔案系統中。
通過百度查到在hadoop中將檔案放到它的檔案系統hdfs中需要命令hadoop fs -copyFromLocal 檔名 目標資料夾
然後再設定最終的輸出目錄地點為hdfs的未存在目錄即可,最終的命令為:
hadoop com.sunshine.hadoop.excutor.MaxTemperatureExecutor /sample.txt /output/01
(上述命令中的/sample.txt是已經將sample.txt檔案放於hdfs中,/output/01是hdfs中不存在的目錄,hadoop執行完MapReduce操作後會自動建立)
最終執行成功示例
相關文章
- AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using localhohttpdServerAI
- AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using localhhttpdServerAI
- 啟動apache遇到錯誤:httpd: Could not reliably determine the server's fully qualified domain nameApachehttpdServerAI
- EWM error 'Delivery is already fully invoiced'Error
- AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using fe80::1httpdServerAI
- Linux上編譯安裝Apache出現httpd: Could not reliably determine the server's fully qualified domain nameLinux編譯ApachehttpdServerAI
- JavaScript classNameJavaScript
- 類成員的指標 classname::*member, (classname::*pf)()指標
- JavaScript className 屬性JavaScript
- ubuntu進行make時報錯error: Neither flex nor lex was found.UbuntuErrorFlex
- Error: User gpmon is not allowed to login Command CenterError
- classList與className區別
- Error: User gpmon is not allowed to login Command Center.Error
- Fully-developed Web AppdevWebAPP
- Error running ‘Application’Command line is too longErrorAPP
- Docker 啟動 Centos 映象 提示"Error response from daemon: No command specified"DockerCentOSError
- RMAN-06403: could not obtain a fully authorized sessionAIZedSession
- 序列SPI NOR快閃記憶體VS並行NOR快閃記憶體記憶體並行
- Error executing Jupyter command 'notebok': [Errno 'jupyter-notebok' not found] 2Error
- FCOS: Fully Convolutional One-Stage Object DetectionObject
- Only a type can be imported. classname resolves to a package的解決ImportPackage
- ios clang: error: linker command failed with exit code 1 (use -v to see invocation)解決方法iOSErrorAI
- Tasks of a Database Administrator : Back Up the Fully Functional Database (14)DatabaseFunction
- 痞子衡嵌入式:通用NOR介面標準(CFI-JESD68)及SLC Parallel NOR簡介Parallel
- NAND Flash和NOR Flash的區別NaN
- ld: -pie can only be used when targeting iOS 4.2 or later clang: error: linker command failed with eiOSErrorAI
- Xcode10 Archive Error - Multiple command product 'xxx/Info.plist' 解決方案XCodeHiveError
- command模式模式
- Git commandGit
- mongodb commandMongoDB
- mongodb commandMongoDB
- Error: CreateProcess failed, Command: ‘C:\Keil_v5\ARM\ARMCC\bin\fromelf.exe --bin -o ..\OBJ\outputErrorAIOBJ
- ambari安裝hdp叢集時,ResourceManager無法啟動,提示Error while executing command 'start':...ErrorWhile
- v$sql.command_type and v$session.commandSQLSession
- V$SESSION COMMANDSession
- pip: command not found
- linux commandLinux
- oracle dump commandOracle