Spark Learning Notes
来源:互联网 发布:node.js 显示所有版本 编辑:程序博客网 时间:2024/05/17 01:25
Only have English input method here. so keep this notes in English.
Recently I borrowed a book about Spark from company's library.
Have learnt some basic concepts about hadoop and spark. Here, I take some notes for Learning Spark.
1. Install
Go to the official site, and download the latest tar file of spark
http://spark.apache.org/downloads.html
you can un-tar the file and put it to the path you want to install for you spark.
here I put it under /usr/local/spark
commands:
cd /usr/local/
sudo cp /home/kevin/Downloads/sparkXXX ./
sudo tar -xf sparkXXX
sudo mv sparkXXX spark
now you can do a quick test to verify you installation.
cd spark
we have a README.md file, we will count the total words in python shell.
./bin/pyspark
>>>test = sc.textFile("README.md")
>>>test.count()
[here show the log message and the result]
also you can go to 127.0.0.1:4040 to open the spark web UI.
- Spark Learning Notes
- Learning Notes
- LEARNING NOTES FROM DEEP LEARNING
- ASP.net Learning notes
- Some C Learning Notes
- UliPad Learning Notes
- HTML Learning Notes
- Erlang Learning Notes
- Java Container Learning notes
- Concurrency programming Learning notes
- Linux learning notes
- Linux learning notes
- Linux learning notes
- Linux Learning notes
- Linux Learning Notes
- Mysql learning notes!
- [DB] Mysql learning notes!
- C++ Template learning notes
- 不灌鸡汤,要长时间学习得这么办!读后感
- Windows句柄的理解
- Android用include引入其他xml布局文件
- JUnit4的使用
- Oracle系统数据表恢复及迁移
- Spark Learning Notes
- myeclipse导入别的项目时出现中文乱码的恶心人的情况
- Eclipse + PyDev 调试 python代码
- leetcode笔记:String to Integer (atoi)
- 记完美一道小题考点
- LightOJ 1258 Making Huge Palindromes(manacher算法)
- [每日一答] [20151012] pandas中,groupby方法返回MultiIndex转成DataFrame
- C语言逻辑非运算符的含义
- socket 错误码