Zhang Li b97ccb6595 fix: add txprodbd | 1 gadu atpakaļ | |
---|---|---|
.. | ||
README.md | 1 gadu atpakaļ | |
core-site.xml | 1 gadu atpakaļ | |
hdfs-site.xml | 1 gadu atpakaļ | |
hive-site.xml | 1 gadu atpakaļ | |
krb5.conf | 1 gadu atpakaļ | |
livy-client.conf | 1 gadu atpakaļ | |
livy.conf | 1 gadu atpakaļ | |
log4j.properties | 1 gadu atpakaļ | |
mapred-site.xml | 1 gadu atpakaļ | |
spark-defaults.conf | 1 gadu atpakaļ | |
user.keytab | 1 gadu atpakaļ | |
yarn-site.xml | 1 gadu atpakaļ | |
信息.txt | 1 gadu atpakaļ | |
平台登录地址.txt | 1 gadu atpakaļ | |
第三方服务.txt | 1 gadu atpakaļ |
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