Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
因为我使用python来控制hive数据etl流,而我使用pyhive连接hive并执行HQL。我想从 hive 获取更多信息,例如 tez 会话执行输出或 hive 的 java 错误异常输出。我应该如何破解 pyhive 包,才能得到这种结果?
我得到了答案。您可以使用异常消息。
# Using Try Exception try: # What you want to execute except Exception as e: print e
然后你会得到错误异常的控制台输出结果。