Bad Request: "requirement failed: Local path /root/.livy-sessions/61a5e39c-d199-4bb8-967b-960b4e3e9
来源:互联网 发布:淘宝促销活动海报 编辑:程序博客网 时间:2024/06/05 10:19
核心代码如下,问题是提交本地代码时报错: Bad Request: "requirement failed: Local path /root/.livy-sessions/61a5e39c-d199-4bb8-967b-960b4e3e9
Code :
LivyClient client = null;try{ String livyUrl = "http://dummy16814.zycus.net:8998"; client = new LivyClientBuilder().setURI(new URI(livyUrl)).build(); String piJar = "E:\\livy_old.jar"; System.err.printf("Uploading %s to the Spark context...\n", piJar); client.uploadJar(new File(piJar)).get(); int samples = 10; System.err.printf("Running PiJob with %d samples...\n", samples); double pi = client.submit(new PiJob()).get(); System.out.println("Pi is roughly: " + pi);}finally{ client.stop(true);}
百度根本找不到答案,在必应浏览器上,找到解决办法:
I resolved this problem by specifying the local path in livy-server-0.3.0/conf/livy.conf:
livy.file.local-dir-whitelist =/root/.livy-sessions/
就是设置这个指向本地的路径。阅读全文
0 0
- Bad Request: "requirement failed: Local path /root/.livy-sessions/61a5e39c-d199-4bb8-967b-960b4e3e9
- 400 Bad Request 4ms
- Domain=com.alamofire.error.serialization.response Code=-1011 "Request failed: bad request (400)
- AFNetworking Post 出错 Code=-1011 Request failed: bad request (400)
- Error Domain=com.alamofire.error.serialization.response Code=-1011 "Request failed: bad request (400
- [Filtered request failed.] with root cause java.io.OptionalDataException
- Oozie Spark on YARN requirement failed
- Failed to load resource: the server responded with a status of 400 (Bad Request)
- Failed to load resource: the server responded with a status of 400 (Bad Request)
- Failed to load resource: the server responded with a status of 400 (Bad Request)
- Failed to load resource: the server responsed with a status of 400 (Bad Request)
- Failed to load resource: the server responded with a status of 400 (Bad Request)
- requirement
- requirement
- Requirement
- nginx 400 Bad Request
- http 400 Bad Request
- 400 bad request
- redis 多个项目之间消息队列传递
- rabbitmq 管理 及 常用命令
- leetcode 638. Shopping Offers
- 2017 Multi-University Training Contest
- 安卓开发 Jni新手初步尝试
- Bad Request: "requirement failed: Local path /root/.livy-sessions/61a5e39c-d199-4bb8-967b-960b4e3e9
- 保护 iOS 用户数据安全: Keychain 和 Touch ID
- 设置Mysql5.6允许外网访问详细流程
- hdfs安全模式
- 擅长排列的小明
- 设计师必须了解的找工作秘籍
- POJ 3080Blue Jeans
- iOS源码博文集锦4
- SQLite学习手册(数据表和视图)