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

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