MAPREDUCE服务 MRS-查询Hive表数据:扩展使用

时间:2024-06-13 09:38:28

扩展使用

  • 配置Hive中间过程的 数据加密

    指定表的格式为RCFile(推荐使用)或SequenceFile,加密算法为ARC4Codec。SequenceFile是Hadoop特有的文件格式,RCFile是Hive优化的文件格式。RCFile优化了列存储,在对大表进行查询时,综合性能表现比SequenceFile更优。

     set hive.exec.compress.output=true; 
     set hive.exec.compress.intermediate=true; 
     set hive.intermediate.compression.codec=org.apache.hadoop.io.encryption.arc4.ARC4Codec;
  • 自定义函数,具体内容请参见创建Hive用户自定义函数
support.huaweicloud.com/devg-lts-mrs/mrs_07_110021.html