spark 将dataframe 数据写入hive分区表

DataFrame 将数据写入hive中时,默认的是hive默认数据库,insertInto没有指定数据库的参数,数据写入hive表或者hive表分区中:sql 一、将DataFrame数据写入到hive表中数据库 从DataFrame类中能够看到与hive表有关的写入API有一下几个:apache registerTempTable(tableName:String):Unit,session
相关文章
相关标签/搜索