Skip to content

Commit

Permalink
drop YT user parameters from python APIs
Browse files Browse the repository at this point in the history
  • Loading branch information
faucct committed Oct 15, 2024
1 parent e8f8b8c commit 7ea4686
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion e2e-test/common/cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def __exit__(self, exc_type, exc_val, exc_tb):
@contextmanager
def submission_client(self):
with java_gateway(java_home=self.java_home) as gw:
yield SparkSubmissionClient(gw, self.proxy, self.discovery_path, self.user, self.token)
yield SparkSubmissionClient(gw, self.proxy, self.discovery_path, self.token)

def submit_cluster_job(self, job_path, conf={}, args=[], py_files=[]):
with self.submission_client() as client:
Expand Down
2 changes: 1 addition & 1 deletion python-examples/yamake_sample/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def run_job(proxy, discovery_path):
logging.info("Gateway created")

submission_client = submit.SparkSubmissionClient(gateway, proxy, discovery_path,
utils.default_user(), utils.default_token())
utils.default_token())
logging.info("Submission client created")

launcher = submission_client.new_launcher()
Expand Down
4 changes: 2 additions & 2 deletions spyt-package/src/main/python/spyt/submit.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,8 @@ def __new__(cls, *args, **kwargs):
instance = super(SparkSubmissionClient, cls).__new__(cls)
return instance

def __init__(self, gateway, proxy, discovery_path, user, token):
self._jclient = gateway.jvm.tech.ytsaurus.spyt.submit.SubmissionClient(proxy, discovery_path, user, token)
def __init__(self, gateway, proxy, discovery_path, token):
self._jclient = gateway.jvm.tech.ytsaurus.spyt.submit.SubmissionClient(proxy, discovery_path, token)
self.gateway = gateway

def new_launcher(self):
Expand Down

0 comments on commit 7ea4686

Please sign in to comment.