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操作後會自動建立)
最終執行成功示例
相關文章
- Error: User gpmon is not allowed to login Command CenterError
- Error running ‘Application’Command line is too longErrorAPP
- JavaScript classNameJavaScript
- Error: User gpmon is not allowed to login Command Center.Error
- JavaScript className 屬性JavaScript
- Error executing Jupyter command 'notebok': [Errno 'jupyter-notebok' not found] 2Error
- ubuntu進行make時報錯error: Neither flex nor lex was found.UbuntuErrorFlex
- classList與className區別
- Fully-developed Web AppdevWebAPP
- Xcode10 Archive Error - Multiple command product 'xxx/Info.plist' 解決方案XCodeHiveError
- FCOS: Fully Convolutional One-Stage Object DetectionObject
- ld: -pie can only be used when targeting iOS 4.2 or later clang: error: linker command failed with eiOSErrorAI
- How to use “cat” command on “find” command's output?
- -bash: id: command not found -bash: tty: command not found
- Error: CreateProcess failed, Command: ‘C:\Keil_v5\ARM\ARMCC\bin\fromelf.exe --bin -o ..\OBJ\outputErrorAIOBJ
- command模式模式
- 論文閱讀筆記:Fully Convolutional Networks for Semantic Segmentation筆記Segmentation
- MRAM可以替代NOR或SRAM
- 為什麼經常會出這個問題? An unknown server-side error occurred while processing the commandServerIDEErrorWhile
- 序列SPI NOR快閃記憶體VS並行NOR快閃記憶體記憶體並行
- 詳解PyTorch FSDP資料並行(Fully Sharded Data Parallel)PyTorch並行Parallel
- nodemon: command not found
- Command Line Tools
- pip: command not found
- [Bash] Kill command
- [Bash] cp command
- [Bash] mv command
- [Bash] mkdir command
- [Bash] echo command
- [Bash] read command
- [Bash] awk command
- V$SESSION COMMANDSession
- [Bash] watch command
- [Bash] curl command
- [Bash] grep command
- codegen的模板檔案mustache中,classname,description,notes如何賦值賦值
- Improved Security for a Ring-Based Fully Homomorphic Encryption Scheme-2013:解讀Scheme
- 痞子衡嵌入式:通用NOR介面標準(CFI-JESD68)及SLC Parallel NOR簡介Parallel