随笔分类 - spark
该文被密码保护。
摘要:1、错误描述:Initial job has not accepted any resources; check your cluster UI to ensure that workers are registe(资源不足) CDH解决方案:进入Yarn,找到配置,修改这个值
阅读全文
摘要:1、cdh执行spark任务(直接在yarn执行) spark2-submit \ --master yarn \ --num-executors 1 \ --executor-cores 1 \ --executor-memory 1G \ --class org.apache.spark.exa
阅读全文
摘要:1、pom.xml <build> <pluginManagement> <plugins> <!-- 编译scala的插件 --> <plugin> <groupId>net.alchim31.maven</groupId> <artifactId>scala-maven-plugin</arti
阅读全文
摘要:1、JedisConnectionPool.scala package sparkstreaming import redis.clients.jedis.{Jedis, JedisPool, JedisPoolConfig} object JedisConnectionPool{ val conf
阅读全文
摘要:前提:启动zookeeper和kafka,创建topic为wc 1、MysqlConnectPool.scala package sparkstreaming import java.sql.{Connection, DriverManager, ResultSet, Statement} impo
阅读全文
摘要:1、pom.xml文件 <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-inst
阅读全文