Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
spark:windows_dev_environment [2017/11/27 13:32] – created david | spark:windows_dev_environment [2025/03/27 15:42] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 3: | Line 3: | ||
Inspiration stolen/ | Inspiration stolen/ | ||
+ | ====== Download ====== | ||
Download: | Download: | ||
* Spark: [[https:// | * Spark: [[https:// | ||
Line 13: | Line 14: | ||
* Copy '' | * Copy '' | ||
+ | Set paths: | ||
< | < | ||
set HADOOP_HOME=c: | set HADOOP_HOME=c: | ||
Line 19: | Line 21: | ||
echo %HADOOP_HOME% | echo %HADOOP_HOME% | ||
- | |||
- | winutils.exe chmod -R 777 C:\tmp\hive | ||
- | |||
</ | </ | ||
**Note:** Path settings should be set in control panel for persistence. | **Note:** Path settings should be set in control panel for persistence. | ||
Line 34: | Line 33: | ||
- Paste in: '' | - Paste in: '' | ||
+ | Configure & Test: | ||
+ | < | ||
+ | winutils.exe chmod -R 777 C:\tmp\hive | ||
+ | winutils.exe ls -F C:\tmp\hive | ||
+ | </ | ||
====== Install/ | ====== Install/ | ||
Line 42: | Line 46: | ||
===== Run it ===== | ===== Run it ===== | ||
< | < | ||
- | C: | + | cd C: |
+ | spark-shell2.cmd | ||
+ | </code> | ||
+ | |||
+ | Custom run... (local master, 2 cores) | ||
+ | < | ||
+ | spark-shell2.cmd | ||
+ | </ | ||
+ | |||
+ | Output: | ||
+ | < | ||
Using Spark' | Using Spark' | ||
Setting default log level to " | Setting default log level to " | ||
Line 65: | Line 79: | ||
Type :help for more information. | Type :help for more information. | ||
</ | </ | ||
+ | |||
+ | Test command: | ||
+ | < | ||
+ | spark.range(1).withColumn(" | ||
+ | </ | ||
+ | |||
+ | exit: | ||
+ | < | ||
+ | sys.exit | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | * Web Interface: [[http:// | ||
+ | * Configuration: |