Guest User

Untitled

a guest
Dec 4th, 2017
347
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.91 KB | None | 0 0
  1. 0: jdbc:hive2://localhost:10000> select * from emp;
  2. +------------+------------+-------------+-------------+------------+
  3. | emp.empno | emp.ename | emp.job | emp.deptno | emp.etype |
  4. +------------+------------+-------------+-------------+------------+
  5. | 7369 | SMITH | CLERK | 10 | PART_TIME |
  6. | 7400 | JONES | ENGINEER | 10 | FULL_TIME |
  7. | 7500 | BROWN | NIGHTGUARD | 20 | FULL_TIME |
  8. | 7510 | LEE | ENGINEER | 20 | FULL_TIME |
  9. +------------+------------+-------------+-------------+------------+
  10. 4 rows selected (0.643 seconds)
  11. 0: jdbc:hive2://localhost:10000> select * from emp order by empno;
  12. WARNING: Hive-on-MR is deprecated in Hive 2 and may not be available in the future versions. Consider using a different execution engine (i.e. spark, tez) or using Hive 1.X releases.
  13. +------------+------------+-------------+-------------+------------+
  14. | emp.empno | emp.ename | emp.job | emp.deptno | emp.etype |
  15. +------------+------------+-------------+-------------+------------+
  16. | 7369 | SMITH | CLERK | 10 | PART_TIME |
  17. | 7400 | JONES | ENGINEER | 10 | FULL_TIME |
  18. | 7500 | BROWN | NIGHTGUARD | 20 | FULL_TIME |
  19. | 7510 | LEE | ENGINEER | 20 | FULL_TIME |
  20. +------------+------------+-------------+-------------+------------+
  21. 4 rows selected (225.852 seconds)
  22.  
  23. <?xml version="1.0" encoding="UTF-8" standalone="no"?>
  24. <?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
  25. <configuration>
  26. <property>
  27. <name>hive.mapred.mode</name>
  28. <value>nostrict</value>
  29. </property>
  30. <property>
  31. <name>javax.jdo.option.ConnectionURL</name>
  32. <value>jdbc:derby:;databaseName=metastore_db;create=true</value>
  33. </property>
  34. <property>
  35. <name>javax.jdo.option.ConnectionDriverName</name>
  36. <value>org.apache.derby.jdbc.EmbeddedDriver</value>
  37. </property>
  38. <property>
  39. <name>hive.exec.local.scratchdir</name>
  40. <value>/home/hadoop/tmp</value>
  41. </property>
  42. <property>
  43. <name>hive.downloaded.resources.dir</name>
  44. <value>/home/hadoop/tmp/${hive.session.id}_resources</value>
  45. </property>
  46. <property>
  47. <name>hive.querylog.location</name>
  48. <value>/home/hadoop/tmp</value>
  49. </property>
  50. <property>
  51. <name>hive.server2.logging.operation.log.location</name>
  52. <value>/home/hadoop/tmp/operation_logs</value>
  53. </property>
  54. </configuration>
  55.  
  56. <?xml version="1.0" encoding="UTF-8"?>
  57. <?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
  58. <configuration>
  59. <property>
  60. <name>dfs.replication</name>
  61. <value>1</value>
  62. </property>
  63. <property>
  64. <name>dfs.name.dir</name>
  65. <value>file:///home/hadoop/hadoopinfra/hdfs/namenode</value>
  66. </property>
  67. <property>
  68. <name>dfs.data.dir</name>
  69. <value>file:///home/hadoop/hadoopinfra/hdfs/datanode</value>
  70. </property>
  71. </configuration>
  72.  
  73. <?xml version="1.0" encoding="UTF-8"?>
  74. <?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
  75. <configuration>
  76. <property>
  77. <name>fs.default.name</name>
  78. <value>hdfs://localhost:9000</value>
  79. </property>
  80. <property>
  81. <name>hadoop.proxyuser.hive.groups</name>
  82. <value>*</value>
  83. </property>
  84. <property>
  85. <name>hadoop.proxyuser.hive.hosts</name>
  86. <value>*</value>
  87. </property>
  88. <property>
  89. <name>hadoop.proxyuser.hadoop.hosts</name>
  90. <value>*</value>
  91. </property>
  92. <property>
  93. <name>hadoop.proxyuser.hadoop.groups</name>
  94. <value>*</value>
  95. </property>
  96. </configuration>
  97.  
  98. <?xml version="1.0"?>
  99. <?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
  100. <configuration>
  101. <property>
  102. <name>mapreduce.framework.name</name>
  103. <value>yarn</value>
  104. </property>
  105. </configuration>
  106.  
  107. <?xml version="1.0"?>
  108. <configuration>
  109. <property>
  110. <name>yarn.nodemanager.aux-services</name>
  111. <value>mapreduce_shuffle</value>
  112. </property>
  113. </configuration>
Add Comment
Please, Sign In to add comment