Zhang Li b97ccb6595 fix: add txprodbd 1 anno fa
..
README.md fea358699f add txtest txprod 2 anni fa
core-site.xml fea358699f add txtest txprod 2 anni fa
hdfs-site.xml fea358699f add txtest txprod 2 anni fa
hive-site.xml fea358699f add txtest txprod 2 anni fa
krb5.conf fea358699f add txtest txprod 2 anni fa
livy-client.conf b97ccb6595 fix: add txprodbd 1 anno fa
livy.conf fea358699f add txtest txprod 2 anni fa
log4j.properties fea358699f add txtest txprod 2 anni fa
mapred-site.xml fea358699f add txtest txprod 2 anni fa
spark-defaults.conf 85950f578f spark default 2 anni fa
user.keytab fea358699f add txtest txprod 2 anni fa
yarn-site.xml fea358699f add txtest txprod 2 anni fa
信息.txt fea358699f add txtest txprod 2 anni fa
平台登录地址.txt fea358699f add txtest txprod 2 anni fa
第三方服务.txt fea358699f add txtest txprod 2 anni fa

README.md

测试 livy

code

curl --request POST \
  --url http://172.23.7.140:30998/sessions \
  --header 'content-type: application/json' \
  --data '{
        "kind": "spark"
}' | jq


curl --request GET \
  --url http://172.23.7.140:30998/sessions/0 \
  --header 'content-type: application/json' \
  --data '{
        "kind": "spark"
}' | jq


curl -XPOST 'http://172.23.7.140:30998/sessions/0/statements' \
-H 'Content-Type: application/json' \
-d '{"code": "spark.range(1000 * 1000 * 1000).count()"}' | jq


curl --request GET \
--url http://172.23.7.140:30998/sessions/0/statements/0 | jq


## pyspark

curl --request POST \
  --url http://10.138.143.16:8998/sessions \
  --header 'content-type: application/json' \
  --data '{
        "kind": "pyspark"
}' | jq


# 查看session
curl --request GET \
  --url http://10.138.143.16:8998/sessions/0 \
  --header 'content-type: application/json' \
  --data '{
        "kind": "pyspark"
}' | jq

# 提交任务
curl -XPOST 'http://10.138.143.16:8998/sessions/0/statements' \
-H 'Content-Type: application/json' \
-d '{"code": "sc.range(5).collect()"}'

# 查看结果
curl --request GET \
--url http://10.138.143.16:8998/sessions/0/statements/0 | jq

curl -X DELETE \
--url http://10.138.143.16:8998/sessions/0 | jq