spark-sql显示字段名称

spark-sql显示表头header

cdh6.3.2集群中,使用命令启动spark-sql,执行
select name from table_001 limit 10;
返回结果:
aaa
bbb
ccc
实现效果:
name:
aaa
bbb
ccc

追加–hiveconf hive.cli.print.header=true

cd /opt/cloudera/parcels/CDH/bin
./spark-sql --num-executors 4 --executor-cores 8 --executor-memory 25G --driver-memory 6G --name test --hiveconf hive.cli.print.header=true
exit;

相关推荐

  1. spark-sql显示字段名

    2024-03-14 17:10:01       41 阅读
  2. <span style='color:red;'>Spark</span> <span style='color:red;'>SQL</span>

    Spark SQL

    2024-03-14 17:10:01      56 阅读
  3. spark-sql

    2024-03-14 17:10:01       41 阅读
  4. <span style='color:red;'>Spark</span> <span style='color:red;'>SQL</span>

    Spark SQL

    2024-03-14 17:10:01      39 阅读
  5. <span style='color:red;'>Spark</span> <span style='color:red;'>SQL</span>

    Spark SQL

    2024-03-14 17:10:01      26 阅读
  6. <span style='color:red;'>Spark</span> <span style='color:red;'>SQL</span>

    Spark SQL

    2024-03-14 17:10:01      24 阅读
  7. <span style='color:red;'>Spark</span> <span style='color:red;'>SQL</span>

    Spark SQL

    2024-03-14 17:10:01      21 阅读
  8. SQL命令---修改字段名

    2024-03-14 17:10:01       57 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-03-14 17:10:01       94 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-03-14 17:10:01       101 阅读
  3. 在Django里面运行非项目文件

    2024-03-14 17:10:01       82 阅读
  4. Python语言-面向对象

    2024-03-14 17:10:01       91 阅读

热门阅读

  1. C语言入门学习 --- 4.数组

    2024-03-14 17:10:01       33 阅读
  2. k8s部署Minio集群

    2024-03-14 17:10:01       48 阅读
  3. gitlab数据代码迁移合并

    2024-03-14 17:10:01       41 阅读
  4. 【自动驾驶】Submap总结

    2024-03-14 17:10:01       41 阅读
  5. MySQL中的视图

    2024-03-14 17:10:01       31 阅读
  6. yolov5模型压缩-shufflenetv3

    2024-03-14 17:10:01       36 阅读
  7. neo4j迁移数据从4.4版本到5.17版本

    2024-03-14 17:10:01       44 阅读