找不到" Spark.dynamicAllocation.enabled" CDH 5.4.7 UI中的属性

时间:2016-12-20 11:40:08

标签: apache-spark yarn cloudera-cdh

我在CDH 5.4.7 UI中找不到Spark.dynamicAllocation.enabled属性。我搜索了Spark和YARN服务的配置。但未能找到。我正在使用Spark 1.3.0。

任何帮助都将不胜感激。

1 个答案:

答案 0 :(得分:0)

您可以通过CLI enter image description here

override func startLoading() { let request = self.request var response: HTTPURLResponse? let hasResponse: Bool = true if request.httpMethod == "GET" || request.httpMethod == "POST" { guard let url = request.url else { return } let client = self.client let statusCode = 200 if url.absoluteString.contains("/good") { print(self.request.httpBody) //here its nil } response = hasResponse ? HTTPURLResponse(url: request.url!, statusCode: statusCode, httpVersion: "HTTP/1.1", headerFields: cannedHeaders) : nil client?.urlProtocol(self, didLoad: responseData) client?.urlProtocol(self, didReceive: response!, cacheStoragePolicy: URLCache.StoragePolicy.notAllowed) client?.urlProtocolDidFinishLoading(self) } } func testCompressRequest() { let expect = expectation(description: "testCompressRequest") let urlRequest = URLRequest(url: URL(string:serverPath+"/good")!) urlRequest.httpBody = "someMethodBodyasString".data(using: .utf8) urlRequest.httpMethod = "POST" urlRequest.allHTTPHeaderFields = ["Accept-Encoding": "gzip, deflate", "Content-Encoding":"gzip, deflate", "Content-Type":"application/json", "Accept":"application/json", "Content-Length":String(describing: urlRequest.httpBody?.count)] let task = URLSession(configuration: sessionConfig).dataTask(with: urlRequest) { (data, response, error) in expect.fulfill() } task.resume() waitForExpectations(timeout: 10, handler: nil) } 中找到它