解決hive資料庫 插入資料很慢的問題

财神给你送元宝發表於2024-09-23

1.1、設定臨時的
在每次執行hql語句之前 都要先執行下面這句話

set hive.exec.mode.local.auto=true;

  

1.2、修改hive配置檔案(hive-site.xml),永久有效


<property>
    <name>hive.exec.mode.local.auto</name>
    <value>true</value>
</property>

相關文章