java.lang.IllegalArgumentException: System memory ... must be at least ... Please use a larger heap

java.lang.IllegalArgumentException: System memory 259522560 must be at least 4.718592E8. Please use a larger heap size.

這裏寫圖片描述

解決:

設置應用程序的 VM options

idea的設置路徑在:Run -Edit Configurations-Application選擇對應的程序,設置VM options,如下:

-Xms256m -Xmx1024m

這裏寫圖片描述

scala ide下的設置爲:

eclispe 中window->preferences->Java->Installed JRE ,點擊右側的Edit 按鈕,在編輯界面中的 “Default VM Arguments ”選項中,編輯。

could not locate executable **winutils.exe in the Hadoop binaries

windows環境下,解決:could not locate executable **winutils.exe in the Hadoop binaries.問題:

ERROR Shell: Failed to locate the winutils binary in the hadoop binary path
java.io.IOException: Could not locate executable E:\hadoop-2.6.3\bin\winutils.exe in the Hadoop binaries.

這裏寫圖片描述

解決:將winutils.exe文件導入到對應Hadoop的bin目錄下面去,就搞定!(放到HADOOP_HOME對應的hadoop版本目錄下面)

這裏寫圖片描述

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章