conda-env-clone-install-create-error-with-mirror-custom-channel

[TOC] 问题原因 突然不能克隆base环境了 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 rm-rfpyspark3602;condacreate--name pyspark3602 --clone base Source:/home/hdp_lbg_ectech/wangke/app/anaconda3Destination:/home/hdp_lbg_ectech/wangke/app/anaconda3/envs/pyspark3602Thefollowingpackagescannotbeclonedoutoftherootenvironment:-http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/linux-64::conda-4.9.2-py36h5fab9bb_0-defaults/linux-64::conda-build-3.10.5-py36_0Packages:195Files:64657...CondaHTTPError:HTTP404NOTFOUNDforurl<http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/noarch/keras-applications-1.0.8-py_1.tar.bz2>Elapsed:00:00.351600AnHTTPerroroccurredwhentryingtoretrievethisURL.HTTPerrorsareoftenintermittent,andasimpleretrywillgetyouonyourway. 第一个问题 这里的主要问题是使用了清华的镜像. 清华镜像只有文件.   ...

save DataFrame as partition of hive table

使用DataFrame直接创建hive表, 并作为其中的一个分区数据 test 1 1 2 3 4 5 6 table .write .format("hive") .mode("overwrite") .option("path", inputPath + "_table") .insertInto(tableName) error, 需要先创建表 1 Exception in thread "main" org.apache.spark.sql.AnalysisException: Table not found: hdp_lbg_ectech_ads.zp_compensate_ad_detail_test1; test 2 首   ...