设置密码
jupyter notebook password
设置配置文件
jupyter notebook --generate-config

c.NotebookApp.allow_root =True
c.NotebookApp.ip = '*'
c.NotebookApp.open_browser = False
c.NotebookApp.password='sha1:31aa1f72a166:6e5525209746d175ed15e12a3351ae745abed8829993'
c.NotebookApp.port=8888
添加pystark的变量
vim .bashrc

export SPARK_HOME="/opt/cloudera/parcels/CDH-6.2.1-1.cdh6.2.1.p0.1425774/lib/spark"

安装模块

pip install findspark
pip install findspark -i https://mirrors.aliyun.com/pypi/simple
pip install pycryptodome -i https://mirrors.aliyun.com/pypi/simple

pip install multiprocessing -i https://mirrors.cloud.tencent.com/pypi/simple

https://files.pythonhosted.org/packages/26/75/30370b9135034d809475cb4ef711079ddd6f0e302a17aef4982d5cee5942/grpcio-1.51.0.tar.gz

pip install --upgrade pip -i https://mirrors.aliyun.com/pypi/simple
pip install tensorflow==1.14.0 -i https://mirrors.aliyun.com/pypi/simple
pip install tensorflow==2.7.3 -i https://pypi.tuna.tsinghua.edu.cn/simple
pip install tensorflow==2.7.3 -i http://pypi.douban.com/simple/
pip install tensorflow==2.7.3 -i https://pypi.mirrors.ustc.edu.cn/simple
pip install beautifulSoup -i https://mirrors.cloud.tencent.com/pypi/simple

modin
pip install beautifulSoup -i https://mirrors.aliyun.com/pypi/simple

pip install pyhive -i https://mirrors.aliyun.com/pypi/simple

pip install wrapt --ignore-installed -i https://mirrors.aliyun.com/pypi/simple
pip3 install --upgrade protobuf==3.20.1 -i https://mirrors.aliyun.com/pypi/simple
启动
nohup jupyter notebook > /root/jupyter.log 2>&1 &