1.设置.pythonrc文件
echo '''import rlcompleter, readline
readline.parse_and_bind("tab: complete")
''' >> ~/.pythonrc
2.设置.bash_profile文件
echo 'export PYTHONSTARTUP="$HOME/.pythonrc"' >> ~/.bash_profile
source ~/.bash_profile
3.启动pyspark
pyspark