Spark framework saves data to hive

Big data calculations can save data on hive, whether you use Core or Sql, there are two safe methods

The first method is to place the data on hdfs first, then hive to load

The second method is to write the data to the table data storage path of hive. When hive reads the data, it is directly deserialized. However, the format of the data in this way is sometimes a headache

There is another way that is not very safe, you can try to write with jdbc, you can first see how to use jdbc to operate hive https://blog.csdn.net/dudadudadd/article/details/112026575

Guess you like

Origin blog.csdn.net/dudadudadd/article/details/114374448