我在Ubuntu上很新,在終端某一時刻我運行:設置JAVA_HOME環境變量在Ubuntu
mortar local:illustrate pigscripts/retail-recsys.pig purchase_input -f params/retail.params
,但我有這個以下錯誤:
A suitable java installation could not be found. If you already have java installed
please set your JAVA_HOME environment variable before continuing. Otherwise, a suitable java installation will need to be added to your local system.Installing Java
On OSX run
javac
from the command line. This will intiate the installation. For Linux systems please consult the documentation on your relevant package manager.
但我很確定我有Java,所以請如何設置我的JAVA_HOME環境變量?
我做了一些關於Mortar的移植和[我發現這個文檔頁面](http://help.mortardata.com/data_apps/recommendation_engine/install_mortar)。我敢打賭,這就是您在運行/安裝時想用來導出JAVA_HOME的內容。 – Makoto