Open f4nha opened 4 years ago
@jcrist can you help with this one? I manage to identify that skein is working fine sending jobs manually to yarn, but from yarnspanner is throwing this errors
[E 2020-01-31 11:45:15.747 JupyterHub spawner:216] Bad message (TypeError('not all arguments converted during string formatting')): {'name': 'JupyterHub', 'msg': 'Failed to submit application for user %s. Original exception:', 'args': (None, None, None, None, None, None, 'myuser'), 'levelname': 'ERROR', 'levelno': 40, 'pathname': '/opt/anaconda3/envs/jhub/lib/python3.8/site-packages/yarnspawner/spawner.py', 'filename': 'spawner.py', 'module': 'spawner', 'exc_info': (<class 'skein.exceptions.DriverError'>, DriverError('Failed to submit application, exception:\njava.lang.reflect.UndeclaredThrowableException'), <traceback object at 0x7f62eb87d9c0>), 'exc_text': None, 'stack_info': None, 'lineno': 216, 'funcName': 'start', 'created': 1580471115.7478108, 'msecs': 747.8108406066895, 'relativeCreated': 22086.684942245483, 'thread': 140063029651264, 'threadName': 'MainThread', 'processName': 'MainProcess', 'process': 28742}
Traceback (most recent call last):
File "/opt/anaconda3/envs/jhub/lib/python3.8/site-packages/yarnspawner/spawner.py", line 212, in start
self.app_id = app_id = await loop.run_in_executor(None, client.submit, spec)
File "/opt/anaconda3/envs/jhub/lib/python3.8/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/opt/anaconda3/envs/jhub/lib/python3.8/site-packages/skein/core.py", line 511, in submit
resp = self._call('submit', spec.to_protobuf())
File "/opt/anaconda3/envs/jhub/lib/python3.8/site-packages/skein/core.py", line 291, in _call
raise self._server_error(exc.details())
skein.exceptions.DriverError: Failed to submit application, exception:
java.lang.reflect.UndeclaredThrowableException`
Apologies for the delayed response here. I'm not sure what's going on here, and that exception isn't terribly useful. You say things were working fine when using skein manually? When you tried that, were you also specifying the principal and keytab and running as a proxy-user as you're doing here? This would look something like:
import skein
spec = skein.ApplicationSpec.from_yaml("""
name: test
queue: default
user: MYUSER
master:
script: |
echo 'Hello World'
""")
with skein.Client(
principal="hdfs-dev05@example.com",
keytab="/etc/security/keytabs/hdfs.headless.keytab",
security=skein.Security.new_credentials(),
log_level="DEBUG",
) as client:
app_id = client.submit(spec)
print(app_id)
I'd try running that - if it succeeds then there's something weird going on with yarnspawner
. If it fails, the debug log-level should hopefully provide us with more information to work with.
Hi there I wonder if anyone can help me with this issue below, been stuck here for a while.
it is getting the hdfs delegation token but failed after that with this error, which I could not figure out where is coming from "skein.exceptions.DriverError: Failed to submit application, exception: java.lang.reflect.UndeclaredThrowableException"
Trace
My jupyter_config.py