8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/vcs.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/image/Action.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/oeljeklaus-you/SparkCore/98c76fa5df4fc1d63ab3216e79f4db0ec764bea6/image/Action.png
--------------------------------------------------------------------------------
/image/CoarseGrainedExecutorBackend.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/oeljeklaus-you/SparkCore/98c76fa5df4fc1d63ab3216e79f4db0ec764bea6/image/CoarseGrainedExecutorBackend.png
--------------------------------------------------------------------------------
/image/RDD运行流程.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/oeljeklaus-you/SparkCore/98c76fa5df4fc1d63ab3216e79f4db0ec764bea6/image/RDD运行流程.png
--------------------------------------------------------------------------------
/image/SparkContext.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/oeljeklaus-you/SparkCore/98c76fa5df4fc1d63ab3216e79f4db0ec764bea6/image/SparkContext.png
--------------------------------------------------------------------------------
/image/SparkRDD的依赖关系.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/oeljeklaus-you/SparkCore/98c76fa5df4fc1d63ab3216e79f4db0ec764bea6/image/SparkRDD的依赖关系.png
--------------------------------------------------------------------------------
/image/SparkSubmit的大概流程.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/oeljeklaus-you/SparkCore/98c76fa5df4fc1d63ab3216e79f4db0ec764bea6/image/SparkSubmit的大概流程.jpg
--------------------------------------------------------------------------------
/image/Spark执行流程.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/oeljeklaus-you/SparkCore/98c76fa5df4fc1d63ab3216e79f4db0ec764bea6/image/Spark执行流程.png
--------------------------------------------------------------------------------
/image/Stage划分流程.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/oeljeklaus-you/SparkCore/98c76fa5df4fc1d63ab3216e79f4db0ec764bea6/image/Stage划分流程.png
--------------------------------------------------------------------------------
/image/Transformation.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/oeljeklaus-you/SparkCore/98c76fa5df4fc1d63ab3216e79f4db0ec764bea6/image/Transformation.png
--------------------------------------------------------------------------------
/image/Woker启动Executor过程并向Driver注册.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/oeljeklaus-you/SparkCore/98c76fa5df4fc1d63ab3216e79f4db0ec764bea6/image/Woker启动Executor过程并向Driver注册.jpg
--------------------------------------------------------------------------------
/image/WordCount的RDD依赖.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/oeljeklaus-you/SparkCore/98c76fa5df4fc1d63ab3216e79f4db0ec764bea6/image/WordCount的RDD依赖.png
--------------------------------------------------------------------------------
/image/images.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/oeljeklaus-you/SparkCore/98c76fa5df4fc1d63ab3216e79f4db0ec764bea6/image/images.jpeg
--------------------------------------------------------------------------------
/image/qrcode.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/oeljeklaus-you/SparkCore/98c76fa5df4fc1d63ab3216e79f4db0ec764bea6/image/qrcode.jpg
--------------------------------------------------------------------------------
/image/spark启动脚本.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/oeljeklaus-you/SparkCore/98c76fa5df4fc1d63ab3216e79f4db0ec764bea6/image/spark启动脚本.png
--------------------------------------------------------------------------------
/scalastyle-output.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/spark-core_2.10 (2).iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/src/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/oeljeklaus-you/SparkCore/98c76fa5df4fc1d63ab3216e79f4db0ec764bea6/src/.DS_Store
--------------------------------------------------------------------------------
/src/main/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/oeljeklaus-you/SparkCore/98c76fa5df4fc1d63ab3216e79f4db0ec764bea6/src/main/.DS_Store
--------------------------------------------------------------------------------
/src/main/java/org/apache/spark/JobExecutionStatus.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | package org.apache.spark;
19 |
20 | public enum JobExecutionStatus {
21 | RUNNING,
22 | SUCCEEDED,
23 | FAILED,
24 | UNKNOWN
25 | }
26 |
--------------------------------------------------------------------------------
/src/main/java/org/apache/spark/SparkJobInfo.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | package org.apache.spark;
19 |
20 | import java.io.Serializable;
21 |
22 | /**
23 | * Exposes information about Spark Jobs.
24 | *
25 | * This interface is not designed to be implemented outside of Spark. We may add additional methods
26 | * which may break binary compatibility with outside implementations.
27 | */
28 | public interface SparkJobInfo extends Serializable {
29 | int jobId();
30 | int[] stageIds();
31 | JobExecutionStatus status();
32 | }
33 |
--------------------------------------------------------------------------------
/src/main/java/org/apache/spark/api/java/function/DoubleFlatMapFunction.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | package org.apache.spark.api.java.function;
19 |
20 | import java.io.Serializable;
21 |
22 | /**
23 | * A function that returns zero or more records of type Double from each input record.
24 | */
25 | public interface DoubleFlatMapFunction extends Serializable {
26 | public Iterable call(T t) throws Exception;
27 | }
28 |
--------------------------------------------------------------------------------
/src/main/java/org/apache/spark/api/java/function/DoubleFunction.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | package org.apache.spark.api.java.function;
19 |
20 | import java.io.Serializable;
21 |
22 | /**
23 | * A function that returns Doubles, and can be used to construct DoubleRDDs.
24 | */
25 | public interface DoubleFunction extends Serializable {
26 | public double call(T t) throws Exception;
27 | }
28 |
--------------------------------------------------------------------------------
/src/main/java/org/apache/spark/api/java/function/FlatMapFunction.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | package org.apache.spark.api.java.function;
19 |
20 | import java.io.Serializable;
21 |
22 | /**
23 | * A function that returns zero or more output records from each input record.
24 | */
25 | public interface FlatMapFunction extends Serializable {
26 | public Iterable call(T t) throws Exception;
27 | }
28 |
--------------------------------------------------------------------------------
/src/main/java/org/apache/spark/api/java/function/FlatMapFunction2.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | package org.apache.spark.api.java.function;
19 |
20 | import java.io.Serializable;
21 |
22 | /**
23 | * A function that takes two inputs and returns zero or more output records.
24 | */
25 | public interface FlatMapFunction2 extends Serializable {
26 | public Iterable call(T1 t1, T2 t2) throws Exception;
27 | }
28 |
--------------------------------------------------------------------------------
/src/main/java/org/apache/spark/api/java/function/Function2.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | package org.apache.spark.api.java.function;
19 |
20 | import java.io.Serializable;
21 |
22 | /**
23 | * A two-argument function that takes arguments of type T1 and T2 and returns an R.
24 | */
25 | public interface Function2 extends Serializable {
26 | public R call(T1 v1, T2 v2) throws Exception;
27 | }
28 |
--------------------------------------------------------------------------------
/src/main/java/org/apache/spark/api/java/function/Function3.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | package org.apache.spark.api.java.function;
19 |
20 | import java.io.Serializable;
21 |
22 | /**
23 | * A three-argument function that takes arguments of type T1, T2 and T3 and returns an R.
24 | */
25 | public interface Function3 extends Serializable {
26 | public R call(T1 v1, T2 v2, T3 v3) throws Exception;
27 | }
28 |
--------------------------------------------------------------------------------
/src/main/java/org/apache/spark/api/java/function/PairFlatMapFunction.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | package org.apache.spark.api.java.function;
19 |
20 | import java.io.Serializable;
21 |
22 | import scala.Tuple2;
23 |
24 | /**
25 | * A function that returns zero or more key-value pair records from each input record. The
26 | * key-value pairs are represented as scala.Tuple2 objects.
27 | */
28 | public interface PairFlatMapFunction extends Serializable {
29 | public Iterable> call(T t) throws Exception;
30 | }
31 |
--------------------------------------------------------------------------------
/src/main/java/org/apache/spark/api/java/function/PairFunction.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | package org.apache.spark.api.java.function;
19 |
20 | import java.io.Serializable;
21 |
22 | import scala.Tuple2;
23 |
24 | /**
25 | * A function that returns key-value pairs (Tuple2<K, V>), and can be used to
26 | * construct PairRDDs.
27 | */
28 | public interface PairFunction extends Serializable {
29 | public Tuple2 call(T t) throws Exception;
30 | }
31 |
--------------------------------------------------------------------------------
/src/main/java/org/apache/spark/api/java/function/VoidFunction.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | package org.apache.spark.api.java.function;
19 |
20 | import java.io.Serializable;
21 |
22 | /**
23 | * A function with no return value.
24 | */
25 | public interface VoidFunction extends Serializable {
26 | public void call(T t) throws Exception;
27 | }
28 |
--------------------------------------------------------------------------------
/src/main/java/org/apache/spark/api/java/function/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | /**
19 | * Set of interfaces to represent functions in Spark's Java API. Users create implementations of
20 | * these interfaces to pass functions to various Java API methods for Spark. Please visit Spark's
21 | * Java programming guide for more details.
22 | */
23 | package org.apache.spark.api.java.function;
--------------------------------------------------------------------------------
/src/main/java/org/apache/spark/api/java/function/package.scala:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | package org.apache.spark.api.java
19 |
20 | /**
21 | * Set of interfaces to represent functions in Spark's Java API. Users create implementations of
22 | * these interfaces to pass functions to various Java API methods for Spark. Please visit Spark's
23 | * Java programming guide for more details.
24 | */
25 | package object function
26 |
--------------------------------------------------------------------------------
/src/main/java/org/apache/spark/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | /**
19 | * Core Spark classes in Scala. A few classes here, such as {@link org.apache.spark.Accumulator}
20 | * and {@link org.apache.spark.storage.StorageLevel}, are also used in Java, but the
21 | * {@link org.apache.spark.api.java} package contains the main Java API.
22 | */
23 | package org.apache.spark;
24 |
--------------------------------------------------------------------------------
/src/main/resources/org/apache/spark/log4j-defaults.properties:
--------------------------------------------------------------------------------
1 | # Set everything to be logged to the console
2 | log4j.rootCategory=INFO, console
3 | log4j.appender.console=org.apache.log4j.ConsoleAppender
4 | log4j.appender.console.target=System.err
5 | log4j.appender.console.layout=org.apache.log4j.PatternLayout
6 | log4j.appender.console.layout.ConversionPattern=%d{yy/MM/dd HH:mm:ss} %p %c{1}: %m%n
7 |
8 | # Settings to quiet third party logs that are too verbose
9 | log4j.logger.org.eclipse.jetty=WARN
10 | log4j.logger.org.eclipse.jetty.util.component.AbstractLifeCycle=ERROR
11 | log4j.logger.org.apache.spark.repl.SparkIMain$exprTyper=INFO
12 | log4j.logger.org.apache.spark.repl.SparkILoop$SparkILoopInterpreter=INFO
13 |
--------------------------------------------------------------------------------
/src/main/resources/org/apache/spark/ui/static/initialize-tooltips.js:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | $(document).ready(function(){
19 | $("[data-toggle=tooltip]").tooltip({container: 'body'});
20 | });
21 |
22 |
--------------------------------------------------------------------------------
/src/main/resources/org/apache/spark/ui/static/sorttable.js:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/oeljeklaus-you/SparkCore/98c76fa5df4fc1d63ab3216e79f4db0ec764bea6/src/main/resources/org/apache/spark/ui/static/sorttable.js
--------------------------------------------------------------------------------
/src/main/resources/org/apache/spark/ui/static/spark-logo-77x50px-hd.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/oeljeklaus-you/SparkCore/98c76fa5df4fc1d63ab3216e79f4db0ec764bea6/src/main/resources/org/apache/spark/ui/static/spark-logo-77x50px-hd.png
--------------------------------------------------------------------------------
/src/main/resources/org/apache/spark/ui/static/spark_logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/oeljeklaus-you/SparkCore/98c76fa5df4fc1d63ab3216e79f4db0ec764bea6/src/main/resources/org/apache/spark/ui/static/spark_logo.png
--------------------------------------------------------------------------------
/src/main/scala/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/oeljeklaus-you/SparkCore/98c76fa5df4fc1d63ab3216e79f4db0ec764bea6/src/main/scala/.DS_Store
--------------------------------------------------------------------------------
/src/main/scala/org/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/oeljeklaus-you/SparkCore/98c76fa5df4fc1d63ab3216e79f4db0ec764bea6/src/main/scala/org/.DS_Store
--------------------------------------------------------------------------------
/src/main/scala/org/apache/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/oeljeklaus-you/SparkCore/98c76fa5df4fc1d63ab3216e79f4db0ec764bea6/src/main/scala/org/apache/.DS_Store
--------------------------------------------------------------------------------
/src/main/scala/org/apache/spark/Partition.scala:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | package org.apache.spark
19 |
20 | /**
21 | * An identifier for a partition in an RDD.
22 | */
23 | trait Partition extends Serializable {
24 | /**
25 | * Get the partition's index within its parent RDD
26 | */
27 | def index: Int
28 |
29 | // A better default implementation of HashCode
30 | override def hashCode(): Int = index
31 | }
32 |
--------------------------------------------------------------------------------
/src/main/scala/org/apache/spark/TaskContextHelper.scala:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | package org.apache.spark
19 |
20 | /**
21 | * This class exists to restrict the visibility of TaskContext setters.
22 | */
23 | private [spark] object TaskContextHelper {
24 |
25 | def setTaskContext(tc: TaskContext): Unit = TaskContext.setTaskContext(tc)
26 |
27 | def unset(): Unit = TaskContext.unset()
28 |
29 | }
30 |
--------------------------------------------------------------------------------
/src/main/scala/org/apache/spark/TaskKilledException.scala:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | package org.apache.spark
19 |
20 | import org.apache.spark.annotation.DeveloperApi
21 |
22 | /**
23 | * :: DeveloperApi ::
24 | * Exception thrown when a task is explicitly killed (i.e., task failure is expected).
25 | */
26 | @DeveloperApi
27 | class TaskKilledException extends RuntimeException
28 |
--------------------------------------------------------------------------------
/src/main/scala/org/apache/spark/TaskNotSerializableException.scala:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | package org.apache.spark
19 |
20 | import org.apache.spark.annotation.DeveloperApi
21 |
22 | /**
23 | * Exception thrown when a task cannot be serialized.
24 | */
25 | private[spark] class TaskNotSerializableException(error: Throwable) extends Exception(error)
26 |
--------------------------------------------------------------------------------
/src/main/scala/org/apache/spark/annotation/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | /**
19 | * Spark annotations to mark an API experimental or intended only for advanced usages by developers.
20 | * This package consist of these annotations, which are used project wide and are reflected in
21 | * Scala and Java docs.
22 | */
23 | package org.apache.spark.annotation;
--------------------------------------------------------------------------------
/src/main/scala/org/apache/spark/annotation/package.scala:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | package org.apache.spark
19 |
20 | /**
21 | * Spark annotations to mark an API experimental or intended only for advanced usages by developers.
22 | * This package consist of these annotations, which are used project wide and are reflected in
23 | * Scala and Java docs.
24 | */
25 | package object annotation
26 |
--------------------------------------------------------------------------------
/src/main/scala/org/apache/spark/api/java/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | /**
19 | * Spark Java programming APIs.
20 | */
21 | package org.apache.spark.api.java;
--------------------------------------------------------------------------------
/src/main/scala/org/apache/spark/api/java/package.scala:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | package org.apache.spark.api
19 |
20 | /** Spark Java programming APIs. */
21 | package object java {
22 | // For package docs only
23 | }
24 |
--------------------------------------------------------------------------------
/src/main/scala/org/apache/spark/broadcast/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | /**
19 | * Spark's broadcast variables, used to broadcast immutable datasets to all nodes.
20 | */
21 | package org.apache.spark.broadcast;
--------------------------------------------------------------------------------
/src/main/scala/org/apache/spark/broadcast/package.scala:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | package org.apache.spark
19 |
20 | /**
21 | * Spark's broadcast variables, used to broadcast immutable datasets to all nodes.
22 | */
23 | package object broadcast {
24 | // For package docs only
25 | }
26 |
--------------------------------------------------------------------------------
/src/main/scala/org/apache/spark/deploy/Command.scala:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | package org.apache.spark.deploy
19 |
20 | import scala.collection.Map
21 |
22 | private[spark] case class Command(
23 | mainClass: String,
24 | arguments: Seq[String],
25 | environment: Map[String, String],
26 | classPathEntries: Seq[String],
27 | libraryPathEntries: Seq[String],
28 | javaOpts: Seq[String]) {
29 | }
30 |
--------------------------------------------------------------------------------
/src/main/scala/org/apache/spark/deploy/ExecutorState.scala:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | package org.apache.spark.deploy
19 |
20 | private[spark] object ExecutorState extends Enumeration {
21 |
22 | val LAUNCHING, LOADING, RUNNING, KILLED, FAILED, LOST, EXITED = Value
23 |
24 | type ExecutorState = Value
25 |
26 | def isFinished(state: ExecutorState): Boolean = Seq(KILLED, FAILED, LOST, EXITED).contains(state)
27 | }
28 |
--------------------------------------------------------------------------------
/src/main/scala/org/apache/spark/deploy/client/TestExecutor.scala:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | package org.apache.spark.deploy.client
19 |
20 | private[spark] object TestExecutor {
21 | def main(args: Array[String]) {
22 | println("Hello world!")
23 | while (true) {
24 | Thread.sleep(1000)
25 | }
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/src/main/scala/org/apache/spark/deploy/master/ApplicationState.scala:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | package org.apache.spark.deploy.master
19 |
20 | private[spark] object ApplicationState extends Enumeration {
21 |
22 | type ApplicationState = Value
23 |
24 | val WAITING, RUNNING, FINISHED, FAILED, UNKNOWN = Value
25 |
26 | val MAX_NUM_RETRY = 10
27 | }
28 |
--------------------------------------------------------------------------------
/src/main/scala/org/apache/spark/deploy/master/RecoveryState.scala:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | package org.apache.spark.deploy.master
19 |
20 | private[spark] object RecoveryState extends Enumeration {
21 | type MasterState = Value
22 |
23 | val STANDBY, ALIVE, RECOVERING, COMPLETING_RECOVERY = Value
24 | }
25 |
--------------------------------------------------------------------------------
/src/main/scala/org/apache/spark/deploy/master/WorkerState.scala:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | package org.apache.spark.deploy.master
19 |
20 | private[spark] object WorkerState extends Enumeration {
21 | type WorkerState = Value
22 |
23 | val ALIVE, DEAD, DECOMMISSIONED, UNKNOWN = Value
24 | }
25 |
--------------------------------------------------------------------------------
/src/main/scala/org/apache/spark/executor/ExecutorBackend.scala:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | package org.apache.spark.executor
19 |
20 | import java.nio.ByteBuffer
21 |
22 | import org.apache.spark.TaskState.TaskState
23 |
24 | /**
25 | * A pluggable interface used by the Executor to send updates to the cluster scheduler.
26 | */
27 | private[spark] trait ExecutorBackend {
28 | def statusUpdate(taskId: Long, state: TaskState, data: ByteBuffer)
29 | }
30 |
31 |
--------------------------------------------------------------------------------
/src/main/scala/org/apache/spark/executor/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | /**
19 | * Package for executor components used with various cluster managers.
20 | */
21 | package org.apache.spark.executor;
--------------------------------------------------------------------------------
/src/main/scala/org/apache/spark/executor/package.scala:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | package org.apache.spark
19 |
20 | /**
21 | * Executor components used with various cluster managers.
22 | * See [[org.apache.spark.executor.Executor]].
23 | */
24 | package object executor
25 |
--------------------------------------------------------------------------------
/src/main/scala/org/apache/spark/io/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | /**
19 | * IO codecs used for compression.
20 | */
21 | package org.apache.spark.io;
--------------------------------------------------------------------------------
/src/main/scala/org/apache/spark/io/package.scala:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | package org.apache.spark
19 |
20 | /**
21 | * IO codecs used for compression. See [[org.apache.spark.io.CompressionCodec]].
22 | */
23 | package object io
24 |
--------------------------------------------------------------------------------
/src/main/scala/org/apache/spark/metrics/sink/Sink.scala:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | package org.apache.spark.metrics.sink
19 |
20 | private[spark] trait Sink {
21 | def start: Unit
22 | def stop: Unit
23 | def report(): Unit
24 | }
25 |
--------------------------------------------------------------------------------
/src/main/scala/org/apache/spark/metrics/sink/package.scala:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | package org.apache.spark.metrics
19 |
20 | /**
21 | * Sinks used in Spark's metrics system.
22 | */
23 | package object sink
24 |
--------------------------------------------------------------------------------
/src/main/scala/org/apache/spark/metrics/source/Source.scala:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | package org.apache.spark.metrics.source
19 |
20 | import com.codahale.metrics.MetricRegistry
21 |
22 | private[spark] trait Source {
23 | def sourceName: String
24 | def metricRegistry: MetricRegistry
25 | }
26 |
--------------------------------------------------------------------------------
/src/main/scala/org/apache/spark/metrics/source/package.scala:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | package org.apache.spark.metrics
19 |
20 | /**
21 | * Sources used in Spark's metrics system.
22 | */
23 | package object source
24 |
--------------------------------------------------------------------------------
/src/main/scala/org/apache/spark/partial/ApproximateEvaluator.scala:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | package org.apache.spark.partial
19 |
20 | /**
21 | * An object that computes a function incrementally by merging in results of type U from multiple
22 | * tasks. Allows partial evaluation at any point by calling currentResult().
23 | */
24 | private[spark] trait ApproximateEvaluator[U, R] {
25 | def merge(outputId: Int, taskResult: U): Unit
26 | def currentResult(): R
27 | }
28 |
--------------------------------------------------------------------------------
/src/main/scala/org/apache/spark/partial/BoundedDouble.scala:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | package org.apache.spark.partial
19 |
20 | import org.apache.spark.annotation.Experimental
21 |
22 | /**
23 | * :: Experimental ::
24 | * A Double value with error bars and associated confidence.
25 | */
26 | @Experimental
27 | class BoundedDouble(val mean: Double, val confidence: Double, val low: Double, val high: Double) {
28 | override def toString(): String = "[%.3f, %.3f]".format(low, high)
29 | }
30 |
--------------------------------------------------------------------------------
/src/main/scala/org/apache/spark/partial/package.scala:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | package org.apache.spark
19 |
20 | /**
21 | * :: Experimental ::
22 | *
23 | * Support for approximate results. This provides convenient api and also implementation for
24 | * approximate calculation.
25 | *
26 | * @see [[org.apache.spark.rdd.RDD.countApprox]]
27 | */
28 | package object partial
29 |
--------------------------------------------------------------------------------
/src/main/scala/org/apache/spark/rdd/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | /**
19 | * Provides implementation's of various RDDs.
20 | */
21 | package org.apache.spark.rdd;
--------------------------------------------------------------------------------
/src/main/scala/org/apache/spark/rdd/package.scala:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | package org.apache.spark
19 |
20 | /**
21 | * Provides several RDD implementations. See [[org.apache.spark.rdd.RDD]].
22 | */
23 | package object rdd
24 |
--------------------------------------------------------------------------------
/src/main/scala/org/apache/spark/scheduler/JobResult.scala:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | package org.apache.spark.scheduler
19 |
20 | import org.apache.spark.annotation.DeveloperApi
21 |
22 | /**
23 | * :: DeveloperApi ::
24 | * A result of a job in the DAGScheduler.
25 | */
26 | @DeveloperApi
27 | sealed trait JobResult
28 |
29 | @DeveloperApi
30 | case object JobSucceeded extends JobResult
31 |
32 | @DeveloperApi
33 | private[spark] case class JobFailed(exception: Exception) extends JobResult
34 |
--------------------------------------------------------------------------------
/src/main/scala/org/apache/spark/scheduler/SchedulingMode.scala:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | package org.apache.spark.scheduler
19 |
20 | /**
21 | * "FAIR" and "FIFO" determines which policy is used
22 | * to order tasks amongst a Schedulable's sub-queues
23 | * "NONE" is used when the a Schedulable has no sub-queues.
24 | */
25 | object SchedulingMode extends Enumeration {
26 |
27 | type SchedulingMode = Value
28 | val FAIR, FIFO, NONE = Value
29 | }
30 |
--------------------------------------------------------------------------------
/src/main/scala/org/apache/spark/scheduler/WorkerOffer.scala:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | package org.apache.spark.scheduler
19 |
20 | /**
21 | * Represents free resources available on an executor.
22 | */
23 | private[spark]
24 | case class WorkerOffer(executorId: String, host: String, cores: Int)
25 |
--------------------------------------------------------------------------------
/src/main/scala/org/apache/spark/scheduler/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | /**
19 | * Spark's DAG scheduler.
20 | */
21 | package org.apache.spark.scheduler;
--------------------------------------------------------------------------------
/src/main/scala/org/apache/spark/scheduler/package.scala:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | package org.apache.spark
19 |
20 | /**
21 | * Spark's scheduling components. This includes the [[org.apache.spark.scheduler.DAGScheduler]] and
22 | * lower level [[org.apache.spark.scheduler.TaskScheduler]].
23 | */
24 | package object scheduler
25 |
--------------------------------------------------------------------------------
/src/main/scala/org/apache/spark/serializer/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | /**
19 | * Pluggable serializers for RDD and shuffle data.
20 | */
21 | package org.apache.spark.serializer;
22 |
--------------------------------------------------------------------------------
/src/main/scala/org/apache/spark/serializer/package.scala:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | package org.apache.spark
19 |
20 | /**
21 | * Pluggable serializers for RDD and shuffle data.
22 | *
23 | * @see [[org.apache.spark.serializer.Serializer]]
24 | */
25 | package object serializer
26 |
--------------------------------------------------------------------------------
/src/main/scala/org/apache/spark/shuffle/ShuffleHandle.scala:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | package org.apache.spark.shuffle
19 |
20 | /**
21 | * An opaque handle to a shuffle, used by a ShuffleManager to pass information about it to tasks.
22 | *
23 | * @param shuffleId ID of the shuffle
24 | */
25 | private[spark] abstract class ShuffleHandle(val shuffleId: Int) extends Serializable {}
26 |
--------------------------------------------------------------------------------
/src/main/scala/org/apache/spark/storage/BlockException.scala:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | package org.apache.spark.storage
19 |
20 | private[spark]
21 | case class BlockException(blockId: BlockId, message: String) extends Exception(message)
22 |
23 |
--------------------------------------------------------------------------------
/src/main/scala/org/apache/spark/storage/BlockNotFoundException.scala:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | package org.apache.spark.storage
19 |
20 | class BlockNotFoundException(blockId: String) extends Exception(s"Block $blockId not found")
21 |
--------------------------------------------------------------------------------
/src/main/scala/org/apache/spark/storage/FileSegment.scala:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | package org.apache.spark.storage
19 |
20 | import java.io.File
21 |
22 | /**
23 | * References a particular segment of a file (potentially the entire file),
24 | * based off an offset and a length.
25 | */
26 | private[spark] class FileSegment(val file: File, val offset: Long, val length: Long) {
27 | override def toString = "(name=%s, offset=%d, length=%d)".format(file.getName, offset, length)
28 | }
29 |
--------------------------------------------------------------------------------
/src/main/scala/org/apache/spark/storage/TachyonFileSegment.scala:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | package org.apache.spark.storage
19 |
20 | import tachyon.client.TachyonFile
21 |
22 | /**
23 | * References a particular segment of a file (potentially the entire file), based off an offset and
24 | * a length.
25 | */
26 | private[spark] class TachyonFileSegment(val file: TachyonFile, val offset: Long, val length: Long) {
27 | override def toString = "(name=%s, offset=%d, length=%d)".format(file.getPath(), offset, length)
28 | }
29 |
--------------------------------------------------------------------------------
/src/main/scala/org/apache/spark/util/IntParam.scala:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | package org.apache.spark.util
19 |
20 | /**
21 | * An extractor object for parsing strings into integers.
22 | */
23 | private[spark] object IntParam {
24 | def unapply(str: String): Option[Int] = {
25 | try {
26 | Some(str.toInt)
27 | } catch {
28 | case e: NumberFormatException => None
29 | }
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/src/main/scala/org/apache/spark/util/ThreadStackTrace.scala:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | package org.apache.spark.util
19 |
20 | /**
21 | * Used for shipping per-thread stacktraces from the executors to driver.
22 | */
23 | private[spark] case class ThreadStackTrace(
24 | threadId: Long,
25 | threadName: String,
26 | threadState: Thread.State,
27 | stackTrace: String)
28 |
--------------------------------------------------------------------------------
/src/main/scala/org/apache/spark/util/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | /**
19 | * Spark utilities.
20 | */
21 | package org.apache.spark.util;
--------------------------------------------------------------------------------
/src/main/scala/org/apache/spark/util/package.scala:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | package org.apache.spark
19 |
20 | /**
21 | * Spark utilities.
22 | */
23 | package object util
24 |
--------------------------------------------------------------------------------
/src/main/scala/org/apache/spark/util/random/Pseudorandom.scala:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | package org.apache.spark.util.random
19 |
20 | import org.apache.spark.annotation.DeveloperApi
21 |
22 | /**
23 | * :: DeveloperApi ::
24 | * A class with pseudorandom behavior.
25 | */
26 | @DeveloperApi
27 | trait Pseudorandom {
28 | /** Set random seed. */
29 | def setSeed(seed: Long)
30 | }
31 |
--------------------------------------------------------------------------------
/src/main/scala/org/apache/spark/util/random/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | /**
19 | * Utilities for random number generation.
20 | */
21 | package org.apache.spark.util.random;
--------------------------------------------------------------------------------
/src/main/scala/org/apache/spark/util/random/package.scala:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | package org.apache.spark.util
19 |
20 | /**
21 | * Utilities for random number generation.
22 | */
23 | package object random
24 |
--------------------------------------------------------------------------------
/src/main/wordCount/cn.edu.hust/WordCount.scala:
--------------------------------------------------------------------------------
1 | package cn.edu.hust;
2 | object WordCount
3 | {
4 | def main(args: Array[String]): Unit = {
5 | val conf=new SparkConf().setAppName("WordCount")
6 | //创建SparkContext对象
7 | val sc=new SparkContext(conf)
8 | //TODO WordCount的主要流程,saveAsTextFile这个Action才开始提交任务
9 | sc.textFile(args(0)).flatMap(_.split(" ")).map((_,1)).reduceByKey(_+_).saveAsTextFile(args(1))
10 | //释放资源
11 | sc.stop()
12 |
13 | }
14 | }
--------------------------------------------------------------------------------
/src/test/resources/fairscheduler.xml:
--------------------------------------------------------------------------------
1 |
2 |
18 |
19 |
20 |
21 | 2
22 | 1
23 | FIFO
24 |
25 |
26 | 3
27 | 1
28 | FIFO
29 |
30 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/src/test/resources/keystore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/oeljeklaus-you/SparkCore/98c76fa5df4fc1d63ab3216e79f4db0ec764bea6/src/test/resources/keystore
--------------------------------------------------------------------------------
/src/test/resources/test_metrics_config.properties:
--------------------------------------------------------------------------------
1 | #
2 | # Licensed to the Apache Software Foundation (ASF) under one or more
3 | # contributor license agreements. See the NOTICE file distributed with
4 | # this work for additional information regarding copyright ownership.
5 | # The ASF licenses this file to You under the Apache License, Version 2.0
6 | # (the "License"); you may not use this file except in compliance with
7 | # the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing, software
12 | # distributed under the License is distributed on an "AS IS" BASIS,
13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | # See the License for the specific language governing permissions and
15 | # limitations under the License.
16 | #
17 |
18 | *.sink.console.period = 10
19 | *.sink.console.unit = seconds
20 | *.source.jvm.class = org.apache.spark.metrics.source.JvmSource
21 | master.sink.console.period = 20
22 | master.sink.console.unit = minutes
23 |
24 |
--------------------------------------------------------------------------------
/src/test/resources/test_metrics_system.properties:
--------------------------------------------------------------------------------
1 | #
2 | # Licensed to the Apache Software Foundation (ASF) under one or more
3 | # contributor license agreements. See the NOTICE file distributed with
4 | # this work for additional information regarding copyright ownership.
5 | # The ASF licenses this file to You under the Apache License, Version 2.0
6 | # (the "License"); you may not use this file except in compliance with
7 | # the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing, software
12 | # distributed under the License is distributed on an "AS IS" BASIS,
13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | # See the License for the specific language governing permissions and
15 | # limitations under the License.
16 | #
17 |
18 | *.sink.console.period = 10
19 | *.sink.console.unit = seconds
20 | test.sink.console.class = org.apache.spark.metrics.sink.ConsoleSink
21 | test.sink.console.period = 20
22 | test.sink.console.unit = minutes
23 |
--------------------------------------------------------------------------------
/src/test/resources/truststore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/oeljeklaus-you/SparkCore/98c76fa5df4fc1d63ab3216e79f4db0ec764bea6/src/test/resources/truststore
--------------------------------------------------------------------------------
/src/test/resources/untrusted-keystore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/oeljeklaus-you/SparkCore/98c76fa5df4fc1d63ab3216e79f4db0ec764bea6/src/test/resources/untrusted-keystore
--------------------------------------------------------------------------------
/src/test/scala/org/apache/spark/HashShuffleSuite.scala:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | package org.apache.spark
19 |
20 | import org.scalatest.BeforeAndAfterAll
21 |
22 | class HashShuffleSuite extends ShuffleSuite with BeforeAndAfterAll {
23 |
24 | // This test suite should run all tests in ShuffleSuite with hash-based shuffle.
25 |
26 | override def beforeAll() {
27 | conf.set("spark.shuffle.manager", "hash")
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/src/test/scala/org/apache/spark/ShuffleNettySuite.scala:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | package org.apache.spark
19 |
20 | import org.scalatest.BeforeAndAfterAll
21 |
22 | class ShuffleNettySuite extends ShuffleSuite with BeforeAndAfterAll {
23 |
24 | // This test suite should run all tests in ShuffleSuite with Netty shuffle mode.
25 |
26 | override def beforeAll() {
27 | conf.set("spark.shuffle.blockTransferService", "netty")
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/src/test/scala/org/apache/spark/SortShuffleSuite.scala:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | package org.apache.spark
19 |
20 | import org.scalatest.BeforeAndAfterAll
21 |
22 | class SortShuffleSuite extends ShuffleSuite with BeforeAndAfterAll {
23 |
24 | // This test suite should run all tests in ShuffleSuite with sort-based shuffle.
25 |
26 | override def beforeAll() {
27 | conf.set("spark.shuffle.manager", "sort")
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/src/test/scala/org/apache/spark/executor/TaskMetricsSuite.scala:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | package org.apache.spark.executor
19 |
20 | import org.scalatest.FunSuite
21 |
22 | class TaskMetricsSuite extends FunSuite {
23 | test("[SPARK-5701] updateShuffleReadMetrics: ShuffleReadMetrics not added when no shuffle deps") {
24 | val taskMetrics = new TaskMetrics()
25 | taskMetrics.updateShuffleReadMetrics()
26 | assert(taskMetrics.shuffleReadMetrics.isEmpty)
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/src/test/scala/org/apache/spark/util/collection/FixedHashObject.scala:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | package org.apache.spark.util.collection
19 |
20 | /**
21 | * A dummy class that always returns the same hash code, to easily test hash collisions
22 | */
23 | case class FixedHashObject(v: Int, h: Int) extends Serializable {
24 | override def hashCode(): Int = h
25 | }
26 |
--------------------------------------------------------------------------------
/target/.plxarc:
--------------------------------------------------------------------------------
1 | maven-shared-archive-resources
--------------------------------------------------------------------------------
/target/antrun/build-main.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/target/jars/guava-14.0.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/oeljeklaus-you/SparkCore/98c76fa5df4fc1d63ab3216e79f4db0ec764bea6/target/jars/guava-14.0.1.jar
--------------------------------------------------------------------------------
/target/jars/jetty-continuation-8.1.14.v20131031.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/oeljeklaus-you/SparkCore/98c76fa5df4fc1d63ab3216e79f4db0ec764bea6/target/jars/jetty-continuation-8.1.14.v20131031.jar
--------------------------------------------------------------------------------
/target/jars/jetty-http-8.1.14.v20131031.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/oeljeklaus-you/SparkCore/98c76fa5df4fc1d63ab3216e79f4db0ec764bea6/target/jars/jetty-http-8.1.14.v20131031.jar
--------------------------------------------------------------------------------
/target/jars/jetty-io-8.1.14.v20131031.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/oeljeklaus-you/SparkCore/98c76fa5df4fc1d63ab3216e79f4db0ec764bea6/target/jars/jetty-io-8.1.14.v20131031.jar
--------------------------------------------------------------------------------
/target/jars/jetty-plus-8.1.14.v20131031.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/oeljeklaus-you/SparkCore/98c76fa5df4fc1d63ab3216e79f4db0ec764bea6/target/jars/jetty-plus-8.1.14.v20131031.jar
--------------------------------------------------------------------------------
/target/jars/jetty-security-8.1.14.v20131031.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/oeljeklaus-you/SparkCore/98c76fa5df4fc1d63ab3216e79f4db0ec764bea6/target/jars/jetty-security-8.1.14.v20131031.jar
--------------------------------------------------------------------------------
/target/jars/jetty-server-8.1.14.v20131031.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/oeljeklaus-you/SparkCore/98c76fa5df4fc1d63ab3216e79f4db0ec764bea6/target/jars/jetty-server-8.1.14.v20131031.jar
--------------------------------------------------------------------------------
/target/jars/jetty-servlet-8.1.14.v20131031.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/oeljeklaus-you/SparkCore/98c76fa5df4fc1d63ab3216e79f4db0ec764bea6/target/jars/jetty-servlet-8.1.14.v20131031.jar
--------------------------------------------------------------------------------
/target/jars/jetty-util-6.1.26.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/oeljeklaus-you/SparkCore/98c76fa5df4fc1d63ab3216e79f4db0ec764bea6/target/jars/jetty-util-6.1.26.jar
--------------------------------------------------------------------------------
/target/jars/jetty-util-8.1.14.v20131031.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/oeljeklaus-you/SparkCore/98c76fa5df4fc1d63ab3216e79f4db0ec764bea6/target/jars/jetty-util-8.1.14.v20131031.jar
--------------------------------------------------------------------------------
/target/maven-archiver/pom.properties:
--------------------------------------------------------------------------------
1 | #Generated by Maven
2 | #Fri Mar 25 07:49:43 PDT 2016
3 | version=1.3.1
4 | groupId=org.apache.spark
5 | artifactId=spark-core_2.10
6 |
--------------------------------------------------------------------------------
/target/maven-shared-archive-resources/META-INF/NOTICE:
--------------------------------------------------------------------------------
1 |
2 | Spark Project Core
3 | Copyright 2018 The Apache Software Foundation
4 |
5 | This product includes software developed at
6 | The Apache Software Foundation (http://www.apache.org/).
7 |
8 |
9 |
--------------------------------------------------------------------------------
/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/oeljeklaus-you/SparkCore/98c76fa5df4fc1d63ab3216e79f4db0ec764bea6/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst
--------------------------------------------------------------------------------
/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/oeljeklaus-you/SparkCore/98c76fa5df4fc1d63ab3216e79f4db0ec764bea6/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst
--------------------------------------------------------------------------------
/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst:
--------------------------------------------------------------------------------
1 | /itcast/spark-1.3.1/core/src/test/java/test/org/apache/spark/JavaTaskCompletionListenerImpl.java
2 | /itcast/spark-1.3.1/core/src/test/java/org/apache/spark/util/collection/TestTimSort.java
3 | /itcast/spark-1.3.1/core/src/test/java/test/org/apache/spark/JavaTaskContextCompileCheck.java
4 | /itcast/spark-1.3.1/core/src/test/java/org/apache/spark/serializer/TestJavaSerializerImpl.java
5 | /itcast/spark-1.3.1/core/src/test/java/org/apache/spark/JavaAPISuite.java
6 | /itcast/spark-1.3.1/core/src/test/java/org/apache/spark/JavaJdbcRDDSuite.java
7 |
--------------------------------------------------------------------------------
/target/original-spark-core_2.10-1.3.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/oeljeklaus-you/SparkCore/98c76fa5df4fc1d63ab3216e79f4db0ec764bea6/target/original-spark-core_2.10-1.3.1.jar
--------------------------------------------------------------------------------
/target/scala-2.10/classes/META-INF/NOTICE:
--------------------------------------------------------------------------------
1 |
2 | Spark Project Core
3 | Copyright 2018 The Apache Software Foundation
4 |
5 | This product includes software developed at
6 | The Apache Software Foundation (http://www.apache.org/).
7 |
8 |
9 |
--------------------------------------------------------------------------------
/target/scala-2.10/classes/org/apache/spark/log4j-defaults.properties:
--------------------------------------------------------------------------------
1 | # Set everything to be logged to the console
2 | log4j.rootCategory=INFO, console
3 | log4j.appender.console=org.apache.log4j.ConsoleAppender
4 | log4j.appender.console.target=System.err
5 | log4j.appender.console.layout=org.apache.log4j.PatternLayout
6 | log4j.appender.console.layout.ConversionPattern=%d{yy/MM/dd HH:mm:ss} %p %c{1}: %m%n
7 |
8 | # Settings to quiet third party logs that are too verbose
9 | log4j.logger.org.eclipse.jetty=WARN
10 | log4j.logger.org.eclipse.jetty.util.component.AbstractLifeCycle=ERROR
11 | log4j.logger.org.apache.spark.repl.SparkIMain$exprTyper=INFO
12 | log4j.logger.org.apache.spark.repl.SparkILoop$SparkILoopInterpreter=INFO
13 |
--------------------------------------------------------------------------------
/target/scala-2.10/classes/org/apache/spark/ui/static/initialize-tooltips.js:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | $(document).ready(function(){
19 | $("[data-toggle=tooltip]").tooltip({container: 'body'});
20 | });
21 |
22 |
--------------------------------------------------------------------------------
/target/scala-2.10/classes/org/apache/spark/ui/static/sorttable.js:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/oeljeklaus-you/SparkCore/98c76fa5df4fc1d63ab3216e79f4db0ec764bea6/target/scala-2.10/classes/org/apache/spark/ui/static/sorttable.js
--------------------------------------------------------------------------------
/target/scala-2.10/classes/org/apache/spark/ui/static/spark-logo-77x50px-hd.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/oeljeklaus-you/SparkCore/98c76fa5df4fc1d63ab3216e79f4db0ec764bea6/target/scala-2.10/classes/org/apache/spark/ui/static/spark-logo-77x50px-hd.png
--------------------------------------------------------------------------------
/target/scala-2.10/classes/org/apache/spark/ui/static/spark_logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/oeljeklaus-you/SparkCore/98c76fa5df4fc1d63ab3216e79f4db0ec764bea6/target/scala-2.10/classes/org/apache/spark/ui/static/spark_logo.png
--------------------------------------------------------------------------------
/target/scala-2.10/classes/py4j/__init__.py:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/oeljeklaus-you/SparkCore/98c76fa5df4fc1d63ab3216e79f4db0ec764bea6/target/scala-2.10/classes/py4j/__init__.py
--------------------------------------------------------------------------------
/target/scala-2.10/classes/py4j/version.py:
--------------------------------------------------------------------------------
1 | __version__ = '0.8.2.1'
2 |
--------------------------------------------------------------------------------
/target/scala-2.10/test-classes/META-INF/NOTICE:
--------------------------------------------------------------------------------
1 |
2 | Spark Project Core
3 | Copyright 2016 The Apache Software Foundation
4 |
5 | This product includes software developed at
6 | The Apache Software Foundation (http://www.apache.org/).
7 |
8 |
9 |
--------------------------------------------------------------------------------
/target/scala-2.10/test-classes/fairscheduler.xml:
--------------------------------------------------------------------------------
1 |
2 |
18 |
19 |
20 |
21 | 2
22 | 1
23 | FIFO
24 |
25 |
26 | 3
27 | 1
28 | FIFO
29 |
30 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/target/scala-2.10/test-classes/keystore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/oeljeklaus-you/SparkCore/98c76fa5df4fc1d63ab3216e79f4db0ec764bea6/target/scala-2.10/test-classes/keystore
--------------------------------------------------------------------------------
/target/scala-2.10/test-classes/test_metrics_config.properties:
--------------------------------------------------------------------------------
1 | #
2 | # Licensed to the Apache Software Foundation (ASF) under one or more
3 | # contributor license agreements. See the NOTICE file distributed with
4 | # this work for additional information regarding copyright ownership.
5 | # The ASF licenses this file to You under the Apache License, Version 2.0
6 | # (the "License"); you may not use this file except in compliance with
7 | # the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing, software
12 | # distributed under the License is distributed on an "AS IS" BASIS,
13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | # See the License for the specific language governing permissions and
15 | # limitations under the License.
16 | #
17 |
18 | *.sink.console.period = 10
19 | *.sink.console.unit = seconds
20 | *.source.jvm.class = org.apache.spark.metrics.source.JvmSource
21 | master.sink.console.period = 20
22 | master.sink.console.unit = minutes
23 |
24 |
--------------------------------------------------------------------------------
/target/scala-2.10/test-classes/test_metrics_system.properties:
--------------------------------------------------------------------------------
1 | #
2 | # Licensed to the Apache Software Foundation (ASF) under one or more
3 | # contributor license agreements. See the NOTICE file distributed with
4 | # this work for additional information regarding copyright ownership.
5 | # The ASF licenses this file to You under the Apache License, Version 2.0
6 | # (the "License"); you may not use this file except in compliance with
7 | # the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing, software
12 | # distributed under the License is distributed on an "AS IS" BASIS,
13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | # See the License for the specific language governing permissions and
15 | # limitations under the License.
16 | #
17 |
18 | *.sink.console.period = 10
19 | *.sink.console.unit = seconds
20 | test.sink.console.class = org.apache.spark.metrics.sink.ConsoleSink
21 | test.sink.console.period = 20
22 | test.sink.console.unit = minutes
23 |
--------------------------------------------------------------------------------
/target/scala-2.10/test-classes/truststore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/oeljeklaus-you/SparkCore/98c76fa5df4fc1d63ab3216e79f4db0ec764bea6/target/scala-2.10/test-classes/truststore
--------------------------------------------------------------------------------
/target/scala-2.10/test-classes/untrusted-keystore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/oeljeklaus-you/SparkCore/98c76fa5df4fc1d63ab3216e79f4db0ec764bea6/target/scala-2.10/test-classes/untrusted-keystore
--------------------------------------------------------------------------------
/target/spark-core_2.10-1.3.1-sources.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/oeljeklaus-you/SparkCore/98c76fa5df4fc1d63ab3216e79f4db0ec764bea6/target/spark-core_2.10-1.3.1-sources.jar
--------------------------------------------------------------------------------
/target/spark-core_2.10-1.3.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/oeljeklaus-you/SparkCore/98c76fa5df4fc1d63ab3216e79f4db0ec764bea6/target/spark-core_2.10-1.3.1.jar
--------------------------------------------------------------------------------