啟動 H2O flow Web UI

Step 1: 依照如何在Windows上安裝x-window完成Xming安裝

Step 2: ssh 登入後啟動firefox

$ firefox &

Step 3: ssh 登入後執行sparkling-shell,進入sparkling-water shell

$ sparkling-shell
...

16/10/27 16:13:01 INFO SessionState: No Tez session required at this point. hive.execution.engine=mr.
16/10/27 16:13:01 INFO SparkILoop: Created sql context (with Hive support)..
SQL context available as sqlContext.

scala>

Step 4: 在sparkling-water shell裡執行 import org.apache.spark.h2o._ 與 val h2oContext = H2OContext.getOrCreate(sc)啟動 sparkling-water cluster

scala> import org.apache.spark.h2o._
import org.apache.spark.h2o._

scala> val h2oContext = H2OContext.getOrCreate(sc)
...

h2oContext: org.apache.spark.h2o.H2OContext =
Sparkling Water Context:

 * H2O name: sparkling-water-ogre_177094347
 * number of executors: 2
 * list of used executors:
 (executorId, host, port)
 ------------------------
 (2,hcdnc418,54321)
 (1,hcdnc422,54321)
 ------------------------
 Open H2O Flow in browser: http://172.16.1.12:54323 (CMD + click in Mac OSX)

Step5: 因每個人所分配到的port皆不同,請依提示訊息,在firefox上打開H2O flow。此例為:http://172.16.1.12:54323

results matching ""

    No results matching ""