Wednesday, May 16, 2018

spark join的区别

http://apachesparkbook.blogspot.com/2015/12/join-leftouterjoin-rightouterjoin.html
https://stackoverflow.com/questions/40772209/how-to-replace-null-to-0-in-left-outer-join-in-spark-dataframe-v1-6

Monday, May 14, 2018

更改mac默认python的办法

问题:
Fatal Python error: PyThreadState_Get: no current thread

解决方法
https://stackoverflow.com/questions/15678153/homebrew-python-on-mac-os-x-10-8-fatal-python-error-pythreadstate-get-no-cu


sudo port select --list python
For my computer, it showed:
Available versions for python:
none
python25-apple
python26
python26-apple
python27 (active)
python27-apple
in which python27(by Macport) was currently active. Then,

sudo port select python python27-apple

Wednesday, April 11, 2018

hive 一坑记录

Caused by: java.util.regex.PatternSyntaxException: Unclosed character class near

https://stackoverflow.com/questions/21816788/unclosed-character-class-error

virtual box 内网银使用

http://www.sijitao.net/618.html
https://www.virtualbox.org/wiki/Download_Old_Builds virtual box 历史的pack可以从这里下载