[英]Error applying authorization policy on hive configuration: Couldn't create directory ${system:java.io.tmpdir}\${hive.session.id}_resources
[英]Cleanup of resources with Hive Session Close
我需要在自定義UDF中創建一些資源(Geocoder with Binary Data)的對象。 這些資源應該為UDF創建一次,每個映射器將保存此資源的單個實例所以我使用的是創建此資源並保留其靜態引用的單例工廠。
為了處理這些資源,我正在使用一個關閉鈎子,如果我從控制台退出而不是處理所有資源,它可以正常使用Hive CLI控制台(Putty)。
但是我無法使用Hue UI處理這些資源,即使我關閉了hive會話,這些資源仍然存在。
有人請幫助我找到一個更清潔的方法來使用Hue UI處理這些資源。
作為一種解決方法,我創建了一個新的UDF來處理這些資源 - SELECT DisposeGeocoders();
。 但這對用戶來說是一個開銷。
你環境中hue.init文件中的這些值是什么? (默認這些是真的,但我會檢查這些屬性:
# Use session-length cookies. Logs out the user when she closes the browser window.
expire_at_browser_close=true
# Hue will try to close the Hive query when the user leaves the editor page.
#This will free all the query resources in HiveServer2, but also make its results inaccessible.
close_queries=true
# Use session-length cookies. Logs out the user when she closes the browser window.
expire_at_browser_close=true
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.