title: Failed to start master for Spark in Windows
body: <p>Same problem as <a href="https://stackoverflow.com/questions/36526186/failed-to-start-master-for-spark-in-windows-10">Failed to start master for spark in windows 10</a> which is also not solved.</p>
  
  <p>My spark is working well by testing pyspark.cmd and spark-shell.cmd</p>
  
  <p>After runing <code>.\sbin\start-master.sh</code> I got:</p>
  
  <pre><code>ps: unknown option -- o
  Try 'ps --help' for more information.
  starting org.apache.spark.deploy.master.Master, logging to C:\spark-1.6.1-bin-hadoop2.6/logs/spark--org.apache.spark.deploy.master.Master-1-%MY_USER_NAME%-PC.out
  ps: unknown option -- o
  Try 'ps --help' for more information.
  failed to launch org.apache.spark.deploy.master.Master:
    ========================================
    Picked up _JAVA_OPTIONS: -Xmx512M -Xms512M
  full log in C:\spark-1.6.1-bin-hadoop2.6/logs/spark--org.apache.spark.deploy.master.Master-1-%MY_USER_NAME%-PC.out
  </code></pre>
  
  <p>I tried to visit web UI, while the localhost:4040 is working the localhost:8080 cannot be reached.</p>
  
  <p>And I found there is the .log file created at the folder of %SPARK_HOME%/logs . They contains same content: </p>
  
  <p>Spark Command: </p>
  
  <pre><code>C:\Program Files\Java\jdk1.7.0_79\bin\java -cp C:\spark-1.6.1-bin-hadoop2.6/conf\;C:\spark-1.6.1-bin-hadoop2.6/lib/spark-assembly-1.6.1-hadoop2.6.0.jar;C:\spark-1.6.1-bin-hadoop2.6\lib\datanucleus-api-jdo-3.2.6.jar;C:\spark-1.6.1-bin-hadoop2.6\lib\datanucleus-core-3.2.10.jar;C:\spark-1.6.1-bin-hadoop2.6\lib\datanucleus-rdbms-3.2.9.jar -Xms1g -Xmx1g -XX:MaxPermSize=256m org.apache.spark.deploy.master.Master --ip hahaha-PC --port 7077 --webui-port 8080
  
  ========================================
  Picked up _JAVA_OPTIONS: -Xmx512M -Xms512M
  </code></pre>
  
  <p>Working environment:
  Spark: 1.6.1
  Windows 10</p>
  
  <p>Looking forward to your reply and thanks for your time so much!</p>