Skip to content

Instantly share code, notes, and snippets.

@hustcat
hustcat / minikube_tips.md
Last active September 8, 2018 23:12
Minikube tips

Install

Install minikube:

# curl -Lo minikube https://storage.googleapis.com/minikube/releases/v0.18.0/minikube-linux-amd64 && chmod +x minikube && sudo mv minikube /usr/local/bin/

Install kubectl:

@hustcat
hustcat / spark_compile_debug_errors.md
Last active November 18, 2021 13:04
spark编译调试错误
  • 运行exmaple中示例错误1:
Exception in thread "main" org.apache.spark.SparkException: A master URL must be set in your configuration

VM options启动参数增加:

-Dspark.master=local
@hustcat
hustcat / spark_internal.md
Last active March 27, 2017 06:47
spark源码

Spark driver

Spark driver的初始化主要围绕SparkContext的初始化,SparkContext初始化完之后,才能向Spark集群提交任务。

  • spark context初始化
    // Create and start the scheduler
    val (sched, ts) = SparkContext.createTaskScheduler(this, master, deployMode) ///创建任务调度器
    _schedulerBackend = sched
#!/bin/bash
if ! [ $# -eq 1 ]; then
echo "Usage: $0 <node-name>"
exit 1
fi
# Directory where everything happens
DIR=~/work/virt-install
# The image downloaded from the http://fedoraproject.org/en/get-fedora#clouds site