configmap-impala.yaml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. apiVersion: v1
  2. kind: ConfigMap
  3. metadata:
  4. name: impala-config
  5. data:
  6. core-site.xml: |
  7. <?xml version="1.0"?>
  8. <?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
  9. <configuration>
  10. <property>
  11. <name>fs.defaultFS</name>
  12. <value>hdfs://{{ .Values.hdfs.namenode.host }}:{{ .Values.hdfs.namenode.port }}</value>
  13. </property>
  14. </configuration>
  15. hdfs-site.xml: |
  16. <?xml version="1.0"?>
  17. <?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
  18. <configuration>
  19. {{ if .Values.aws.accessKeyId }}
  20. <property>
  21. <name>fs.s3a.access.key</name>
  22. <value>{{ .Values.aws.accessKeyId }}</value>
  23. </property>
  24. {{ end }}
  25. {{ if .Values.aws.accessKeyId }}
  26. <property>
  27. <name>fs.s3a.secret.key</name>
  28. <value>{{ .Values.aws.secretAccessKey }}</value>
  29. </property>
  30. {{ end }}
  31. <property>
  32. <name>dfs.datanode.hdfs-blocks-metadata.enabled</name>
  33. <value>true</value>
  34. <description>Needed for Impala</description>
  35. </property>
  36. <property>
  37. <name>dfs.client.file-block-storage-locations.timeout.millis</name>
  38. <value>10000</value>
  39. </property>
  40. </configuration>
  41. hive-site.xml: |
  42. <configuration>
  43. <property>
  44. <name>hive.metastore.uris</name>
  45. <value>{{ .Values.metastore.uris }}</value>
  46. <description>IP address (or fully-qualified domain name) and port of the metastore host</description>
  47. </property>
  48. </configuration>