我遇到异常:状态代码:500-此错误代码是什么意思? 我正在尝试从Apache Drill连接到jupyter笔记本。钻头运行良好。
参考:https://github.com/JohnOmernik/jupyter_drill
Exception Traceback (most recent call last)
<ipython-input-2-3352f08ce66c> in <module>
----> 1 get_ipython().run_line_magic('drill', 'connect')
~/jupyter/jupyter-env/lib/python3.5/site-packages/IPython/core/interactiveshell.py in run_line_magic(self, magic_name, line, _stack_depth)
2312 kwargs['local_ns'] = sys._getframe(stack_depth).f_locals
2313 with self.builtin_trap:
-> 2314 result = fn(*args, **kwargs)
2315 return result
2316
</home/linaro/jupyter/jupyter-env/lib/python3.5/site-packages/decorator.py:decorator-gen-126> in drill(self, line, cell)
~/jupyter/jupyter-env/lib/python3.5/site-packages/IPython/core/magic.py in <lambda>(f, *a, **k)
185 # but it's overkill for just that one bit of state.
186 def magic_deco(arg):
--> 187 call = lambda f, *a, **k: f(*a, **k)
188
189 if callable(arg):
~/jupyter/jupyter-env/lib/python3.5/site-packages/drill_core/drill_base.py in drill(self, line, cell)
363 self.connectDrill(True)
364 elif line.lower() == "connect":
--> 365 self.connectDrill(False)
366 elif line.lower() .find('set ') == 0:
367 self.setvar(line)
~/jupyter/jupyter-env/lib/python3.5/site-packages/drill_core/drill_base.py in connectDrill(self, prompt)
217 result = -1
--> 218 result = self.authDrill()
219 if result == 0:
~/jupyter/jupyter-env/lib/python3.5/site-packages/drill_core/drill_base.py in authDrill(self)
310 result = 0
311 else:
--> 312 raise Exception("Status Code: %s - Error" % r.status_code)
313 return result
314
**Exception: Status Code: 500 - Error**