0
計算偏我有下面一段代碼的問題:使用spark.sql和Cloudant
def skewTemperature(cloudantdata,spark):
return spark.sql("""SELECT (1/count(temperature)) * (sum(POW(temperature-%s,3))/pow(%s,3)) as skew from washing""" %(meanTemperature(cloudantdata,spark),sdTemperature(cloudantdata,spark))).first().skew
meanTemperature
和sdTemperature
都工作正常,但與上面的查詢我收到以下錯誤:
Py4JJavaError: An error occurred while calling o2849.collectToPython.
: org.apache.spark.SparkException: Job aborted due to stage failure: Task 3 in stage 315.0 failed 10 times, most recent failure: Lost task 3.9 in stage 315.0 (TID 1532, yp-spark-dal09-env5-0045): java.lang.RuntimeException: Database washing request error: {"error":"too_many_requests","reason":"You've exceeded your current limit of 5 requests per second for query class. Please try later.","class":"query","rate":5
有誰知道如何解決這個問題?
請問清楚問題不清楚 – Kondal