以外の何か他のものに履歴ファイルの場所を設定することができますが方法がbeeline
履歴ファイルの場所を定義するコードです:
/**
* The save directory if HOME/.beeline/ on UNIX, and
* HOME/beeline/ on Windows.
*/
public File saveDir() {
String dir = System.getProperty("beeline.rcfile");
if (dir != null && dir.length() > 0) {
return new File(dir);
}
File f = new File(System.getProperty("user.home"),
(System.getProperty("os.name").toLowerCase()
.indexOf("windows") != -1 ? "" : ".") + "beeline")
.getAbsoluteFile();
try {
f.mkdirs();
} catch (Exception e) {
}
return f;
}
Hive-beeline履歴ファイルの場所は、beeline JVM
を-Duser.home=/new/home/dir
オプションで実行することによってのみ変更できます。