ERROR scheduler.LiveListenerBus: Listener EventLoggingListener threw an exception
java.lang.reflect.InvocationTargetException
在代码最后一行添加sc.stop()解决了该问题。
1.3 提前在Hive数据仓库中创建库spark_sql_hive
hive (default)> create database spark_sql_hive;
OK
Time taken: 5.502 seconds
准备people.txt与peoplescores.txt两个文本文件
people.txt内容为:(人员信息表:姓名,年龄)
Michael 29
Andy 30
Justin 19
peoplescores.txt内容为:(人员分数表:姓名,分数)
Michael 99
Andy 97
Justin 68