concepts
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo_bakwget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repoyum makecachegit clone https://github.com/databricks/mlflowmlflow uimlflow pyfunc serve -m /Users/mlflow/mlflow-prototype/mlruns/0/7c1a0d5c42844dcdb8f5191146925174/artifacts/model -p 1234curl -X POST -H "Content-Type:application/json; format=pandas-split" --data '{"columns":["alcohol", "chlorides", "citric acid", "density", "fixed acidity", "free sulfur dioxide", "pH", "residual sugar", "sulphates", "total sulfur dioxide", "volatile acidity"],"data":[[12.8, 0.029, 0.48, 0.98, 6.2, 29, 3.33, 1.2, 0.39, 75, 0.66]]}' http://127.0.0.1:1234/invocationssudo systemctl start cloudera-scm-server sudo tail -f /var/log/cloudera-scm-server/cloudera-scm-server.logpip freeze #查看安装的包 pip uninstall <package> pip install <package>==<version>vi ~/.bashrc #添加 export PYSPARK_PYTHON=python3 source ~/.bashrc
Last updated