您好,登錄后才能下訂單哦!
Linux 下運(yùn)行spark local bind on port 0. Attempting port 1 問(wèn)題
2016-11-01 16:04:56 [org.apache.spark.util.Utils]-[WARN] - Service 'sparkDriver' could not bind on port 0. Attempting port 1.
2016-11-01 16:04:56 [org.apache.spark.SparkContext]-[ERROR] - Error initializing SparkContext.
java.net.BindException: Can't assign requested address: Service 'sparkDriver' failed after 16 retries! Consider explicitly setting the appropriate port for the service 'sparkDriver' (for example spark.ui.port for SparkUI) to an available port or increasing spark.port.maxRetries.
原因是找不到主機(jī)對(duì)應(yīng)的ip地址,而不是端口綁定不正確引起的。
在hosts中加入如下代碼
127.0.0.1 hostname
這里的用戶名根據(jù)實(shí)際情況來(lái)寫(xiě),這樣,spark local 就能找到本地對(duì)應(yīng)的ip了,啟動(dòng)成功
免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如果涉及侵權(quán)請(qǐng)聯(lián)系站長(zhǎng)郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。