因此,当我尝试使用 databricks-connect 将我的应用程序与 databricks compute 连接起来时,我无法这样做,因为出现了这个错误:
BAD_REQUEST: SingleClusterComputeMode(xxxxxx) is not Shared or Single User Cluster.
我尝试运行的代码:
from databricks.connect import DatabricksSession
from pyspark.sql.types import *
import dotenv as env
import os
env.load_dotenv()
spark = DatabricksSession.builder.remote(
host = os.getenv("HOST"),
token = os.getenv("API_TOKEN_DATABRICKS"),
cluster_id = os.getenv("CLUSTER_ID")
).getOrCreate()
df1 = spark.read.format("delta").load("xxxxxxxxxxxxxxxxxxxxxxx")
df1.show()
我发现我应该使用统一目录但目前我不能。
如果有人遇到这个问题,请帮助我,并让我知道是否有可能在没有 Unity 目录的情况下做到这一点
$(function() {
$(“.js-gps-inline-related-questions .spacer”).on(“click”, function () {
fireRelatedEvent($(this).index() + 1, $(this).data(‘question-id’));
});
function fireRelatedEvent(position, questionId) {
StackExchange.using(“gps”, function() {
StackExchange.gps.track(‘related_questions.click’,
{
position: position,
originQuestionId: 79146011,
relatedQuestionId: +questionId,
location: ‘inline’,
source: ‘Baseline_Fallback’
});
});
}
});
function toggleInlineRelated(showMore) {
var inlineRelatedLess = document.getElementById(“inline_related_var_a_less”);
var inlineRelatedMore = document.getElementById(“inline_related_var_a_more”);
var inlineRelatedSeeMore = document.getElementById(“inline_related_see_more”);
var inlineRelatedSeeLess = document.getElementById(“inline_related_see_less”);
if (showMore) {
inlineRelatedLess.classList.add(“d-none”);
inlineRelatedSeeMore.classList.add(“d-none”);
inlineRelatedMore.classList.remove(“d-none”);
inlineRelatedSeeLess.classList.remove(“d-none”);
}
else {
inlineRelatedMore.classList.add(“d-none”);
inlineRelatedSeeLess.classList.add(“d-none”);
inlineRelatedLess.classList.remove(“d-none”);
inlineRelatedSeeMore.classList.remove(“d-none”);
}
}
|