ERROR thriftserver.SparkSQLDriver:
Failed in [select * from tg_persona_base_gender]
java.lang.RuntimeException: Error in configuring object
Caused by: java.lang.IllegalArgumentException:
Compression codec com.hadoop.compression.lzo.LzoCodec not found.
解决办法:
1、Spark要接管Hive需要把hive-site.xml拷贝到conf/目录下
2、把Mysql的驱动copy到jars/目录下
3、如果访问不到hdfs,则需要把core-site.xml和hdfs-site.xml拷贝到conf/目录下
4、把hadoop目录下的share/hadoop/common/hadoop-lzo.....jar,拷一份到spark的jars下面去