You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by ma...@apache.org on 2013/07/17 02:31:45 UTC
[48/50] [abbrv] git commit: Add Apache license headers and LICENSE
and NOTICE files
Add Apache license headers and LICENSE and NOTICE files
Project: http://git-wip-us.apache.org/repos/asf/incubator-spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-spark/commit/af3c9d50
Tree: http://git-wip-us.apache.org/repos/asf/incubator-spark/tree/af3c9d50
Diff: http://git-wip-us.apache.org/repos/asf/incubator-spark/diff/af3c9d50
Branch: refs/heads/master
Commit: af3c9d50424602f3e5af1055e83e9badef0a1632
Parents: 00a14de
Author: Matei Zaharia <ma...@eecs.berkeley.edu>
Authored: Tue Jul 16 17:21:33 2013 -0700
Committer: Matei Zaharia <ma...@eecs.berkeley.edu>
Committed: Tue Jul 16 17:21:33 2013 -0700
----------------------------------------------------------------------
LICENSE | 229 ++++++++++++++++---
NOTICE | 5 +
bagel/pom.xml | 17 ++
bagel/src/main/scala/spark/bagel/Bagel.scala | 17 ++
.../spark/bagel/examples/PageRankUtils.scala | 17 ++
.../bagel/examples/WikipediaPageRank.scala | 17 ++
.../examples/WikipediaPageRankStandalone.scala | 17 ++
bagel/src/test/resources/log4j.properties | 19 +-
bagel/src/test/scala/bagel/BagelSuite.scala | 17 ++
bin/slaves.sh | 5 +-
bin/spark-config.sh | 19 +-
bin/spark-daemon.sh | 5 +-
bin/spark-daemons.sh | 17 ++
bin/start-all.sh | 17 ++
bin/start-master.sh | 17 ++
bin/start-slave.sh | 17 ++
bin/start-slaves.sh | 17 ++
bin/stop-all.sh | 17 ++
bin/stop-master.sh | 17 ++
bin/stop-slaves.sh | 17 ++
core/pom.xml | 17 ++
.../apache/hadoop/mapred/HadoopMapRedUtil.scala | 17 ++
.../hadoop/mapreduce/HadoopMapReduceUtil.scala | 17 ++
.../scala/spark/deploy/SparkHadoopUtil.scala | 17 ++
.../apache/hadoop/mapred/HadoopMapRedUtil.scala | 17 ++
.../hadoop/mapreduce/HadoopMapReduceUtil.scala | 17 ++
.../scala/spark/deploy/SparkHadoopUtil.scala | 17 ++
.../spark/deploy/yarn/ApplicationMaster.scala | 17 ++
.../yarn/ApplicationMasterArguments.scala | 17 ++
.../scala/spark/deploy/yarn/Client.scala | 17 ++
.../spark/deploy/yarn/ClientArguments.scala | 17 ++
.../spark/deploy/yarn/WorkerRunnable.scala | 17 ++
.../deploy/yarn/YarnAllocationHandler.scala | 17 ++
.../cluster/YarnClusterScheduler.scala | 17 ++
.../apache/hadoop/mapred/HadoopMapRedUtil.scala | 17 ++
.../hadoop/mapreduce/HadoopMapReduceUtil.scala | 17 ++
.../scala/spark/deploy/SparkHadoopUtil.scala | 17 ++
.../java/spark/network/netty/FileClient.java | 17 ++
.../netty/FileClientChannelInitializer.java | 17 ++
.../spark/network/netty/FileClientHandler.java | 17 ++
.../java/spark/network/netty/FileServer.java | 17 ++
.../netty/FileServerChannelInitializer.java | 17 ++
.../spark/network/netty/FileServerHandler.java | 17 ++
.../java/spark/network/netty/PathResolver.java | 17 ++
core/src/main/scala/spark/Accumulators.scala | 17 ++
core/src/main/scala/spark/Aggregator.scala | 17 ++
.../scala/spark/BlockStoreShuffleFetcher.scala | 17 ++
core/src/main/scala/spark/Cache.scala | 17 ++
core/src/main/scala/spark/CacheManager.scala | 17 ++
core/src/main/scala/spark/ClosureCleaner.scala | 17 ++
core/src/main/scala/spark/Dependency.scala | 17 ++
.../main/scala/spark/DoubleRDDFunctions.scala | 17 ++
.../main/scala/spark/FetchFailedException.scala | 17 ++
core/src/main/scala/spark/HadoopWriter.scala | 17 ++
core/src/main/scala/spark/HttpFileServer.scala | 19 +-
core/src/main/scala/spark/HttpServer.scala | 17 ++
core/src/main/scala/spark/JavaSerializer.scala | 17 ++
core/src/main/scala/spark/KryoSerializer.scala | 17 ++
core/src/main/scala/spark/Logging.scala | 17 ++
.../src/main/scala/spark/MapOutputTracker.scala | 17 ++
.../src/main/scala/spark/PairRDDFunctions.scala | 17 ++
core/src/main/scala/spark/Partition.scala | 17 ++
core/src/main/scala/spark/Partitioner.scala | 17 ++
core/src/main/scala/spark/RDD.scala | 17 ++
.../main/scala/spark/RDDCheckpointData.scala | 17 ++
.../scala/spark/SequenceFileRDDFunctions.scala | 17 ++
.../main/scala/spark/SerializableWritable.scala | 17 ++
core/src/main/scala/spark/ShuffleFetcher.scala | 17 ++
core/src/main/scala/spark/SizeEstimator.scala | 17 ++
.../main/scala/spark/SoftReferenceCache.scala | 17 ++
core/src/main/scala/spark/SparkContext.scala | 17 ++
core/src/main/scala/spark/SparkEnv.scala | 17 ++
core/src/main/scala/spark/SparkException.scala | 17 ++
core/src/main/scala/spark/SparkFiles.java | 17 ++
core/src/main/scala/spark/TaskContext.scala | 17 ++
core/src/main/scala/spark/TaskEndReason.scala | 17 ++
core/src/main/scala/spark/TaskState.scala | 17 ++
core/src/main/scala/spark/Utils.scala | 17 ++
.../scala/spark/api/java/JavaDoubleRDD.scala | 17 ++
.../main/scala/spark/api/java/JavaPairRDD.scala | 17 ++
.../src/main/scala/spark/api/java/JavaRDD.scala | 17 ++
.../main/scala/spark/api/java/JavaRDDLike.scala | 17 ++
.../scala/spark/api/java/JavaSparkContext.scala | 17 ++
.../java/JavaSparkContextVarargsWorkaround.java | 17 ++
.../scala/spark/api/java/StorageLevels.java | 17 ++
.../java/function/DoubleFlatMapFunction.java | 17 ++
.../spark/api/java/function/DoubleFunction.java | 17 ++
.../api/java/function/FlatMapFunction.scala | 17 ++
.../api/java/function/FlatMapFunction2.scala | 17 ++
.../scala/spark/api/java/function/Function.java | 17 ++
.../spark/api/java/function/Function2.java | 17 ++
.../api/java/function/PairFlatMapFunction.java | 17 ++
.../spark/api/java/function/PairFunction.java | 17 ++
.../spark/api/java/function/VoidFunction.scala | 19 +-
.../api/java/function/WrappedFunction1.scala | 17 ++
.../api/java/function/WrappedFunction2.scala | 17 ++
.../spark/api/python/PythonPartitioner.scala | 17 ++
.../main/scala/spark/api/python/PythonRDD.scala | 17 ++
.../spark/api/python/PythonWorkerFactory.scala | 17 ++
.../spark/broadcast/BitTorrentBroadcast.scala | 17 ++
.../main/scala/spark/broadcast/Broadcast.scala | 17 ++
.../spark/broadcast/BroadcastFactory.scala | 17 ++
.../scala/spark/broadcast/HttpBroadcast.scala | 17 ++
.../scala/spark/broadcast/MultiTracker.scala | 17 ++
.../main/scala/spark/broadcast/SourceInfo.scala | 17 ++
.../scala/spark/broadcast/TreeBroadcast.scala | 17 ++
.../spark/deploy/ApplicationDescription.scala | 17 ++
core/src/main/scala/spark/deploy/Command.scala | 17 ++
.../main/scala/spark/deploy/DeployMessage.scala | 17 ++
.../main/scala/spark/deploy/ExecutorState.scala | 17 ++
.../main/scala/spark/deploy/JsonProtocol.scala | 19 +-
.../scala/spark/deploy/LocalSparkCluster.scala | 17 ++
core/src/main/scala/spark/deploy/WebUI.scala | 17 ++
.../main/scala/spark/deploy/client/Client.scala | 17 ++
.../spark/deploy/client/ClientListener.scala | 17 ++
.../scala/spark/deploy/client/TestClient.scala | 17 ++
.../spark/deploy/client/TestExecutor.scala | 17 ++
.../spark/deploy/master/ApplicationInfo.scala | 17 ++
.../spark/deploy/master/ApplicationState.scala | 17 ++
.../spark/deploy/master/ExecutorInfo.scala | 17 ++
.../main/scala/spark/deploy/master/Master.scala | 17 ++
.../spark/deploy/master/MasterArguments.scala | 17 ++
.../scala/spark/deploy/master/WorkerInfo.scala | 17 ++
.../scala/spark/deploy/master/WorkerState.scala | 17 ++
.../deploy/master/ui/ApplicationPage.scala | 17 ++
.../spark/deploy/master/ui/IndexPage.scala | 17 ++
.../spark/deploy/master/ui/MasterWebUI.scala | 19 +-
.../spark/deploy/worker/ExecutorRunner.scala | 17 ++
.../main/scala/spark/deploy/worker/Worker.scala | 17 ++
.../spark/deploy/worker/WorkerArguments.scala | 17 ++
.../spark/deploy/worker/ui/IndexPage.scala | 17 ++
.../spark/deploy/worker/ui/WorkerWebUI.scala | 17 ++
.../main/scala/spark/executor/Executor.scala | 17 ++
.../scala/spark/executor/ExecutorBackend.scala | 17 ++
.../scala/spark/executor/ExecutorExitCode.scala | 17 ++
.../spark/executor/ExecutorURLClassLoader.scala | 17 ++
.../spark/executor/MesosExecutorBackend.scala | 17 ++
.../executor/StandaloneExecutorBackend.scala | 17 ++
.../main/scala/spark/executor/TaskMetrics.scala | 17 ++
.../scala/spark/network/BufferMessage.scala | 19 +-
.../main/scala/spark/network/Connection.scala | 17 ++
.../scala/spark/network/ConnectionManager.scala | 17 ++
.../spark/network/ConnectionManagerId.scala | 17 ++
.../spark/network/ConnectionManagerTest.scala | 17 ++
core/src/main/scala/spark/network/Message.scala | 17 ++
.../main/scala/spark/network/MessageChunk.scala | 17 ++
.../spark/network/MessageChunkHeader.scala | 17 ++
.../main/scala/spark/network/ReceiverTest.scala | 17 ++
.../main/scala/spark/network/SenderTest.scala | 17 ++
.../scala/spark/network/netty/FileHeader.scala | 17 ++
.../spark/network/netty/ShuffleCopier.scala | 17 ++
.../spark/network/netty/ShuffleSender.scala | 17 ++
core/src/main/scala/spark/package.scala | 17 ++
.../partial/ApproximateActionListener.scala | 17 ++
.../spark/partial/ApproximateEvaluator.scala | 17 ++
.../scala/spark/partial/BoundedDouble.scala | 17 ++
.../scala/spark/partial/CountEvaluator.scala | 17 ++
.../spark/partial/GroupedCountEvaluator.scala | 17 ++
.../spark/partial/GroupedMeanEvaluator.scala | 17 ++
.../spark/partial/GroupedSumEvaluator.scala | 17 ++
.../scala/spark/partial/MeanEvaluator.scala | 17 ++
.../scala/spark/partial/PartialResult.scala | 17 ++
.../scala/spark/partial/StudentTCacher.scala | 17 ++
.../main/scala/spark/partial/SumEvaluator.scala | 17 ++
core/src/main/scala/spark/rdd/BlockRDD.scala | 17 ++
.../src/main/scala/spark/rdd/CartesianRDD.scala | 17 ++
.../main/scala/spark/rdd/CheckpointRDD.scala | 17 ++
.../src/main/scala/spark/rdd/CoGroupedRDD.scala | 17 ++
.../src/main/scala/spark/rdd/CoalescedRDD.scala | 17 ++
core/src/main/scala/spark/rdd/EmptyRDD.scala | 17 ++
core/src/main/scala/spark/rdd/FilteredRDD.scala | 17 ++
.../main/scala/spark/rdd/FlatMappedRDD.scala | 17 ++
core/src/main/scala/spark/rdd/GlommedRDD.scala | 17 ++
core/src/main/scala/spark/rdd/HadoopRDD.scala | 17 ++
core/src/main/scala/spark/rdd/JdbcRDD.scala | 17 ++
.../main/scala/spark/rdd/MapPartitionsRDD.scala | 17 ++
.../spark/rdd/MapPartitionsWithIndexRDD.scala | 17 ++
core/src/main/scala/spark/rdd/MappedRDD.scala | 17 ++
.../src/main/scala/spark/rdd/NewHadoopRDD.scala | 17 ++
.../scala/spark/rdd/ParallelCollectionRDD.scala | 17 ++
.../scala/spark/rdd/PartitionPruningRDD.scala | 17 ++
core/src/main/scala/spark/rdd/PipedRDD.scala | 17 ++
core/src/main/scala/spark/rdd/SampledRDD.scala | 17 ++
core/src/main/scala/spark/rdd/ShuffledRDD.scala | 17 ++
.../main/scala/spark/rdd/SubtractedRDD.scala | 17 ++
core/src/main/scala/spark/rdd/UnionRDD.scala | 17 ++
.../scala/spark/rdd/ZippedPartitionsRDD.scala | 17 ++
core/src/main/scala/spark/rdd/ZippedRDD.scala | 17 ++
.../main/scala/spark/scheduler/ActiveJob.scala | 17 ++
.../scala/spark/scheduler/DAGScheduler.scala | 17 ++
.../spark/scheduler/DAGSchedulerEvent.scala | 17 ++
.../scala/spark/scheduler/InputFormatInfo.scala | 17 ++
.../scala/spark/scheduler/JobListener.scala | 17 ++
.../main/scala/spark/scheduler/JobLogger.scala | 17 ++
.../main/scala/spark/scheduler/JobResult.scala | 17 ++
.../main/scala/spark/scheduler/JobWaiter.scala | 17 ++
.../main/scala/spark/scheduler/MapStatus.scala | 17 ++
.../main/scala/spark/scheduler/ResultTask.scala | 17 ++
.../scala/spark/scheduler/ShuffleMapTask.scala | 17 ++
.../scala/spark/scheduler/SparkListener.scala | 17 ++
.../main/scala/spark/scheduler/SplitInfo.scala | 17 ++
core/src/main/scala/spark/scheduler/Stage.scala | 17 ++
.../main/scala/spark/scheduler/StageInfo.scala | 19 +-
core/src/main/scala/spark/scheduler/Task.scala | 17 ++
.../main/scala/spark/scheduler/TaskResult.scala | 17 ++
.../scala/spark/scheduler/TaskScheduler.scala | 17 ++
.../spark/scheduler/TaskSchedulerListener.scala | 17 ++
.../main/scala/spark/scheduler/TaskSet.scala | 17 ++
.../scheduler/cluster/ClusterScheduler.scala | 17 ++
.../cluster/ClusterTaskSetManager.scala | 17 ++
.../scheduler/cluster/ExecutorLossReason.scala | 17 ++
.../scala/spark/scheduler/cluster/Pool.scala | 17 ++
.../spark/scheduler/cluster/Schedulable.scala | 17 ++
.../scheduler/cluster/SchedulableBuilder.scala | 17 ++
.../scheduler/cluster/SchedulerBackend.scala | 17 ++
.../scheduler/cluster/SchedulingAlgorithm.scala | 17 ++
.../scheduler/cluster/SchedulingMode.scala | 17 ++
.../cluster/SparkDeploySchedulerBackend.scala | 17 ++
.../cluster/StandaloneClusterMessage.scala | 17 ++
.../cluster/StandaloneSchedulerBackend.scala | 17 ++
.../scheduler/cluster/TaskDescription.scala | 17 ++
.../spark/scheduler/cluster/TaskInfo.scala | 17 ++
.../scheduler/cluster/TaskSetManager.scala | 17 ++
.../spark/scheduler/cluster/WorkerOffer.scala | 17 ++
.../spark/scheduler/local/LocalScheduler.scala | 17 ++
.../scheduler/local/LocalTaskSetManager.scala | 17 ++
.../mesos/CoarseMesosSchedulerBackend.scala | 17 ++
.../scheduler/mesos/MesosSchedulerBackend.scala | 17 ++
.../scala/spark/serializer/Serializer.scala | 17 ++
.../spark/serializer/SerializerManager.scala | 17 ++
.../scala/spark/storage/BlockException.scala | 17 ++
.../scala/spark/storage/BlockFetchTracker.scala | 17 ++
.../spark/storage/BlockFetcherIterator.scala | 17 ++
.../main/scala/spark/storage/BlockManager.scala | 17 ++
.../scala/spark/storage/BlockManagerId.scala | 17 ++
.../spark/storage/BlockManagerMaster.scala | 17 ++
.../spark/storage/BlockManagerMasterActor.scala | 17 ++
.../spark/storage/BlockManagerMessages.scala | 17 ++
.../spark/storage/BlockManagerSlaveActor.scala | 17 ++
.../spark/storage/BlockManagerWorker.scala | 17 ++
.../main/scala/spark/storage/BlockMessage.scala | 17 ++
.../scala/spark/storage/BlockMessageArray.scala | 17 ++
.../scala/spark/storage/BlockObjectWriter.scala | 17 ++
.../main/scala/spark/storage/BlockStore.scala | 17 ++
.../main/scala/spark/storage/DiskStore.scala | 17 ++
.../main/scala/spark/storage/MemoryStore.scala | 17 ++
.../main/scala/spark/storage/PutResult.scala | 17 ++
.../spark/storage/ShuffleBlockManager.scala | 17 ++
.../main/scala/spark/storage/StorageLevel.scala | 17 ++
.../main/scala/spark/storage/StorageUtils.scala | 17 ++
.../scala/spark/storage/ThreadingTest.scala | 17 ++
core/src/main/scala/spark/ui/JettyUtils.scala | 17 ++
core/src/main/scala/spark/ui/Page.scala | 19 +-
core/src/main/scala/spark/ui/SparkUI.scala | 17 ++
core/src/main/scala/spark/ui/UIUtils.scala | 19 +-
.../scala/spark/ui/UIWorkloadGenerator.scala | 17 ++
.../main/scala/spark/ui/env/EnvironmentUI.scala | 17 ++
.../main/scala/spark/ui/jobs/IndexPage.scala | 17 ++
.../scala/spark/ui/jobs/JobProgressUI.scala | 19 +-
.../main/scala/spark/ui/jobs/StagePage.scala | 17 ++
.../scala/spark/ui/storage/BlockManagerUI.scala | 17 ++
.../main/scala/spark/ui/storage/IndexPage.scala | 17 ++
.../main/scala/spark/ui/storage/RDDPage.scala | 17 ++
core/src/main/scala/spark/util/AkkaUtils.scala | 17 ++
.../scala/spark/util/BoundedPriorityQueue.scala | 17 ++
.../spark/util/ByteBufferInputStream.scala | 17 ++
.../scala/spark/util/CompletionIterator.scala | 19 +-
.../main/scala/spark/util/Distribution.scala | 19 +-
.../src/main/scala/spark/util/IdGenerator.scala | 17 ++
core/src/main/scala/spark/util/IntParam.scala | 17 ++
.../src/main/scala/spark/util/MemoryParam.scala | 17 ++
.../main/scala/spark/util/MetadataCleaner.scala | 17 ++
.../main/scala/spark/util/NextIterator.scala | 19 +-
.../spark/util/RateLimitedOutputStream.scala | 17 ++
.../scala/spark/util/SerializableBuffer.scala | 17 ++
.../src/main/scala/spark/util/StatCounter.scala | 17 ++
.../scala/spark/util/TimeStampedHashMap.scala | 17 ++
.../scala/spark/util/TimeStampedHashSet.scala | 17 ++
core/src/main/scala/spark/util/Vector.scala | 17 ++
core/src/test/resources/fairscheduler.xml | 17 ++
core/src/test/resources/log4j.properties | 19 +-
.../src/test/scala/spark/AccumulatorSuite.scala | 17 ++
core/src/test/scala/spark/BroadcastSuite.scala | 17 ++
core/src/test/scala/spark/CheckpointSuite.scala | 17 ++
.../test/scala/spark/ClosureCleanerSuite.scala | 17 ++
.../src/test/scala/spark/DistributedSuite.scala | 17 ++
core/src/test/scala/spark/DriverSuite.scala | 17 ++
core/src/test/scala/spark/FailureSuite.scala | 17 ++
core/src/test/scala/spark/FileServerSuite.scala | 17 ++
core/src/test/scala/spark/FileSuite.scala | 17 ++
core/src/test/scala/spark/JavaAPISuite.java | 17 ++
.../test/scala/spark/KryoSerializerSuite.scala | 17 ++
.../test/scala/spark/LocalSparkContext.scala | 17 ++
.../scala/spark/MapOutputTrackerSuite.scala | 17 ++
.../scala/spark/PairRDDFunctionsSuite.scala | 17 ++
.../test/scala/spark/PartitioningSuite.scala | 17 ++
core/src/test/scala/spark/PipedRDDSuite.scala | 17 ++
core/src/test/scala/spark/RDDSuite.scala | 17 ++
.../test/scala/spark/SharedSparkContext.scala | 17 ++
.../test/scala/spark/ShuffleNettySuite.scala | 17 ++
core/src/test/scala/spark/ShuffleSuite.scala | 17 ++
.../test/scala/spark/SizeEstimatorSuite.scala | 17 ++
core/src/test/scala/spark/SortingSuite.scala | 17 ++
core/src/test/scala/spark/ThreadingSuite.scala | 17 ++
core/src/test/scala/spark/UnpersistSuite.scala | 17 ++
core/src/test/scala/spark/UtilsSuite.scala | 17 ++
.../scala/spark/ZippedPartitionsSuite.scala | 17 ++
.../src/test/scala/spark/rdd/JdbcRDDSuite.scala | 17 ++
.../rdd/ParallelCollectionSplitSuite.scala | 17 ++
.../spark/scheduler/ClusterSchedulerSuite.scala | 17 ++
.../spark/scheduler/DAGSchedulerSuite.scala | 17 ++
.../scala/spark/scheduler/JobLoggerSuite.scala | 17 ++
.../spark/scheduler/LocalSchedulerSuite.scala | 17 ++
.../spark/scheduler/SparkListenerSuite.scala | 17 ++
.../spark/scheduler/TaskContextSuite.scala | 17 ++
.../scala/spark/storage/BlockManagerSuite.scala | 17 ++
core/src/test/scala/spark/ui/UISuite.scala | 17 ++
.../scala/spark/util/DistributionSuite.scala | 17 ++
.../scala/spark/util/NextIteratorSuite.scala | 17 ++
.../util/RateLimitedOutputStreamSuite.scala | 17 ++
docs/_plugins/copy_api_dirs.rb | 17 ++
ec2/spark-ec2 | 2 +
ec2/spark_ec2.py | 2 +
examples/pom.xml | 17 ++
.../main/java/spark/examples/JavaHdfsLR.java | 17 ++
.../main/java/spark/examples/JavaKMeans.java | 17 ++
.../main/java/spark/examples/JavaLogQuery.java | 17 ++
.../main/java/spark/examples/JavaSparkPi.java | 17 ++
.../src/main/java/spark/examples/JavaTC.java | 17 ++
.../main/java/spark/examples/JavaWordCount.java | 17 ++
.../streaming/examples/JavaFlumeEventCount.java | 17 ++
.../examples/JavaNetworkWordCount.java | 17 ++
.../streaming/examples/JavaQueueStream.java | 17 ++
.../scala/spark/examples/BroadcastTest.scala | 17 ++
.../scala/spark/examples/CassandraTest.scala | 17 ++
.../spark/examples/ExceptionHandlingTest.scala | 17 ++
.../main/scala/spark/examples/GroupByTest.scala | 17 ++
.../main/scala/spark/examples/HBaseTest.scala | 19 +-
.../main/scala/spark/examples/HdfsTest.scala | 17 ++
.../main/scala/spark/examples/LocalALS.scala | 17 ++
.../main/scala/spark/examples/LocalFileLR.scala | 17 ++
.../main/scala/spark/examples/LocalKMeans.scala | 17 ++
.../src/main/scala/spark/examples/LocalLR.scala | 17 ++
.../src/main/scala/spark/examples/LocalPi.scala | 17 ++
.../main/scala/spark/examples/LogQuery.scala | 17 ++
.../spark/examples/MultiBroadcastTest.scala | 17 ++
.../examples/SimpleSkewedGroupByTest.scala | 17 ++
.../spark/examples/SkewedGroupByTest.scala | 17 ++
.../main/scala/spark/examples/SparkALS.scala | 17 ++
.../main/scala/spark/examples/SparkHdfsLR.scala | 17 ++
.../main/scala/spark/examples/SparkKMeans.scala | 17 ++
.../src/main/scala/spark/examples/SparkLR.scala | 17 ++
.../src/main/scala/spark/examples/SparkPi.scala | 17 ++
.../src/main/scala/spark/examples/SparkTC.scala | 17 ++
.../streaming/examples/ActorWordCount.scala | 17 ++
.../streaming/examples/FlumeEventCount.scala | 17 ++
.../streaming/examples/HdfsWordCount.scala | 17 ++
.../streaming/examples/KafkaWordCount.scala | 17 ++
.../streaming/examples/NetworkWordCount.scala | 17 ++
.../spark/streaming/examples/QueueStream.scala | 17 ++
.../streaming/examples/RawNetworkGrep.scala | 17 ++
.../examples/StatefulNetworkWordCount.scala | 17 ++
.../streaming/examples/TwitterAlgebirdCMS.scala | 17 ++
.../streaming/examples/TwitterAlgebirdHLL.scala | 17 ++
.../streaming/examples/TwitterPopularTags.scala | 17 ++
.../streaming/examples/ZeroMQWordCount.scala | 17 ++
.../clickstream/PageViewGenerator.scala | 17 ++
.../examples/clickstream/PageViewStream.scala | 17 ++
make-distribution.sh | 19 ++
.../scala/spark/mllib/clustering/KMeans.scala | 17 ++
.../spark/mllib/clustering/KMeansModel.scala | 17 ++
.../spark/mllib/clustering/LocalKMeans.scala | 17 ++
.../spark/mllib/optimization/Gradient.scala | 17 ++
.../mllib/optimization/GradientDescent.scala | 17 ++
.../spark/mllib/optimization/Updater.scala | 17 ++
.../scala/spark/mllib/recommendation/ALS.scala | 17 ++
.../MatrixFactorizationModel.scala | 17 ++
.../mllib/regression/LogisticRegression.scala | 17 ++
.../LogisticRegressionGenerator.scala | 17 ++
.../spark/mllib/regression/Regression.scala | 17 ++
.../mllib/regression/RidgeRegression.scala | 17 ++
.../regression/RidgeRegressionGenerator.scala | 17 ++
.../main/scala/spark/mllib/util/MLUtils.scala | 17 ++
mllib/src/test/resources/log4j.properties | 19 +-
.../spark/mllib/clustering/KMeansSuite.scala | 17 ++
.../spark/mllib/recommendation/ALSSuite.scala | 17 ++
.../regression/LogisticRegressionSuite.scala | 17 ++
.../mllib/regression/RidgeRegressionSuite.scala | 17 ++
pom.xml | 17 ++
project/SparkBuild.scala | 16 ++
project/build.properties | 17 ++
pyspark | 17 ++
python/epydoc.conf | 17 ++
python/examples/als.py | 17 ++
python/examples/kmeans.py | 17 ++
python/examples/logistic_regression.py | 17 ++
python/examples/pi.py | 17 ++
python/examples/transitive_closure.py | 17 ++
python/examples/wordcount.py | 17 ++
python/pyspark/accumulators.py | 17 ++
python/pyspark/broadcast.py | 17 ++
python/pyspark/context.py | 17 ++
python/pyspark/daemon.py | 17 ++
python/pyspark/files.py | 17 ++
python/pyspark/java_gateway.py | 17 ++
python/pyspark/rdd.py | 17 ++
python/pyspark/serializers.py | 17 ++
python/pyspark/shell.py | 17 ++
python/pyspark/tests.py | 17 ++
python/pyspark/worker.py | 17 ++
python/run-tests | 20 +-
repl-bin/pom.xml | 17 ++
repl-bin/src/deb/bin/run | 19 +-
repl-bin/src/deb/bin/spark-executor | 17 ++
repl-bin/src/deb/bin/spark-shell | 17 ++
repl/pom.xml | 17 ++
.../scala/spark/repl/ExecutorClassLoader.scala | 17 ++
repl/src/main/scala/spark/repl/Main.scala | 17 ++
repl/src/test/resources/log4j.properties | 19 +-
repl/src/test/scala/spark/repl/ReplSuite.scala | 17 ++
run | 17 ++
run.cmd | 18 ++
run2.cmd | 17 ++
sbt/sbt | 20 ++
sbt/sbt.cmd | 20 ++
spark-executor | 18 ++
spark-shell | 19 ++
spark-shell.cmd | 18 ++
streaming/pom.xml | 17 ++
.../main/scala/spark/streaming/Checkpoint.scala | 17 ++
.../main/scala/spark/streaming/DStream.scala | 17 ++
.../spark/streaming/DStreamCheckpointData.scala | 17 ++
.../scala/spark/streaming/DStreamGraph.scala | 17 ++
.../main/scala/spark/streaming/Duration.scala | 17 ++
.../main/scala/spark/streaming/Interval.scala | 17 ++
.../src/main/scala/spark/streaming/Job.scala | 17 ++
.../main/scala/spark/streaming/JobManager.scala | 17 ++
.../spark/streaming/NetworkInputTracker.scala | 17 ++
.../spark/streaming/PairDStreamFunctions.scala | 17 ++
.../main/scala/spark/streaming/Scheduler.scala | 17 ++
.../spark/streaming/StreamingContext.scala | 17 ++
.../src/main/scala/spark/streaming/Time.scala | 19 +-
.../spark/streaming/api/java/JavaDStream.scala | 19 +-
.../streaming/api/java/JavaDStreamLike.scala | 19 +-
.../streaming/api/java/JavaPairDStream.scala | 17 ++
.../api/java/JavaStreamingContext.scala | 17 ++
.../streaming/dstream/CoGroupedDStream.scala | 17 ++
.../dstream/ConstantInputDStream.scala | 19 +-
.../streaming/dstream/FileInputDStream.scala | 17 ++
.../streaming/dstream/FilteredDStream.scala | 17 ++
.../dstream/FlatMapValuedDStream.scala | 17 ++
.../streaming/dstream/FlatMappedDStream.scala | 17 ++
.../streaming/dstream/FlumeInputDStream.scala | 17 ++
.../streaming/dstream/ForEachDStream.scala | 17 ++
.../streaming/dstream/GlommedDStream.scala | 17 ++
.../spark/streaming/dstream/InputDStream.scala | 17 ++
.../streaming/dstream/KafkaInputDStream.scala | 17 ++
.../dstream/MapPartitionedDStream.scala | 17 ++
.../streaming/dstream/MapValuedDStream.scala | 17 ++
.../spark/streaming/dstream/MappedDStream.scala | 17 ++
.../streaming/dstream/NetworkInputDStream.scala | 17 ++
.../dstream/PluggableInputDStream.scala | 17 ++
.../streaming/dstream/QueueInputDStream.scala | 17 ++
.../streaming/dstream/RawInputDStream.scala | 17 ++
.../dstream/ReducedWindowedDStream.scala | 17 ++
.../streaming/dstream/ShuffledDStream.scala | 17 ++
.../streaming/dstream/SocketInputDStream.scala | 17 ++
.../spark/streaming/dstream/StateDStream.scala | 17 ++
.../streaming/dstream/TransformedDStream.scala | 17 ++
.../streaming/dstream/TwitterInputDStream.scala | 17 ++
.../spark/streaming/dstream/UnionDStream.scala | 17 ++
.../streaming/dstream/WindowedDStream.scala | 17 ++
.../streaming/receivers/ActorReceiver.scala | 17 ++
.../streaming/receivers/ZeroMQReceiver.scala | 17 ++
.../main/scala/spark/streaming/util/Clock.scala | 17 ++
.../streaming/util/MasterFailureTest.scala | 17 ++
.../spark/streaming/util/RawTextHelper.scala | 17 ++
.../spark/streaming/util/RawTextSender.scala | 17 ++
.../spark/streaming/util/RecurringTimer.scala | 17 ++
.../test/java/spark/streaming/JavaAPISuite.java | 17 ++
.../java/spark/streaming/JavaTestUtils.scala | 19 +-
streaming/src/test/resources/log4j.properties | 19 +-
.../spark/streaming/BasicOperationsSuite.scala | 17 ++
.../scala/spark/streaming/CheckpointSuite.scala | 17 ++
.../scala/spark/streaming/FailureSuite.scala | 17 ++
.../spark/streaming/InputStreamsSuite.scala | 17 ++
.../scala/spark/streaming/TestSuiteBase.scala | 17 ++
.../spark/streaming/WindowOperationsSuite.scala | 17 ++
488 files changed, 8448 insertions(+), 59 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-spark/blob/af3c9d50/LICENSE
----------------------------------------------------------------------
diff --git a/LICENSE b/LICENSE
index d17afa1..d645695 100644
--- a/LICENSE
+++ b/LICENSE
@@ -1,27 +1,202 @@
-Copyright (c) 2010, Regents of the University of California.
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions
-are met:
- * Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright
- notice, this list of conditions and the following disclaimer in the
- documentation and/or other materials provided with the distribution.
- * Neither the name of the University of California, Berkeley nor the
- names of its contributors may be used to endorse or promote
- products derived from this software without specific prior written
- permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
-TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
-PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
-LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+ Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+ 1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+ END OF TERMS AND CONDITIONS
+
+ APPENDIX: How to apply the Apache License to your work.
+
+ To apply the Apache License to your work, attach the following
+ boilerplate notice, with the fields enclosed by brackets "[]"
+ replaced with your own identifying information. (Don't include
+ the brackets!) The text should be enclosed in the appropriate
+ comment syntax for the file format. We also recommend that a
+ file or class name and description of purpose be included on the
+ same "printed page" as the copyright notice for easier
+ identification within third-party archives.
+
+ Copyright [yyyy] [name of copyright owner]
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
http://git-wip-us.apache.org/repos/asf/incubator-spark/blob/af3c9d50/NOTICE
----------------------------------------------------------------------
diff --git a/NOTICE b/NOTICE
new file mode 100644
index 0000000..7cbb114
--- /dev/null
+++ b/NOTICE
@@ -0,0 +1,5 @@
+Apache Spark
+Copyright 2013 The Apache Software Foundation.
+
+This product includes software developed at
+The Apache Software Foundation (http://www.apache.org/).
http://git-wip-us.apache.org/repos/asf/incubator-spark/blob/af3c9d50/bagel/pom.xml
----------------------------------------------------------------------
diff --git a/bagel/pom.xml b/bagel/pom.xml
index b83a0ef..60bbc49 100644
--- a/bagel/pom.xml
+++ b/bagel/pom.xml
@@ -1,4 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ ~ Licensed to the Apache Software Foundation (ASF) under one or more
+ ~ contributor license agreements. See the NOTICE file distributed with
+ ~ this work for additional information regarding copyright ownership.
+ ~ The ASF licenses this file to You under the Apache License, Version 2.0
+ ~ (the "License"); you may not use this file except in compliance with
+ ~ the License. You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing, software
+ ~ distributed under the License is distributed on an "AS IS" BASIS,
+ ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ ~ See the License for the specific language governing permissions and
+ ~ limitations under the License.
+ -->
+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
http://git-wip-us.apache.org/repos/asf/incubator-spark/blob/af3c9d50/bagel/src/main/scala/spark/bagel/Bagel.scala
----------------------------------------------------------------------
diff --git a/bagel/src/main/scala/spark/bagel/Bagel.scala b/bagel/src/main/scala/spark/bagel/Bagel.scala
index 5ecdd7d..80c8d53 100644
--- a/bagel/src/main/scala/spark/bagel/Bagel.scala
+++ b/bagel/src/main/scala/spark/bagel/Bagel.scala
@@ -1,3 +1,20 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
package spark.bagel
import spark._
http://git-wip-us.apache.org/repos/asf/incubator-spark/blob/af3c9d50/bagel/src/main/scala/spark/bagel/examples/PageRankUtils.scala
----------------------------------------------------------------------
diff --git a/bagel/src/main/scala/spark/bagel/examples/PageRankUtils.scala b/bagel/src/main/scala/spark/bagel/examples/PageRankUtils.scala
index b97d786..de65e27 100644
--- a/bagel/src/main/scala/spark/bagel/examples/PageRankUtils.scala
+++ b/bagel/src/main/scala/spark/bagel/examples/PageRankUtils.scala
@@ -1,3 +1,20 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
package spark.bagel.examples
import spark._
http://git-wip-us.apache.org/repos/asf/incubator-spark/blob/af3c9d50/bagel/src/main/scala/spark/bagel/examples/WikipediaPageRank.scala
----------------------------------------------------------------------
diff --git a/bagel/src/main/scala/spark/bagel/examples/WikipediaPageRank.scala b/bagel/src/main/scala/spark/bagel/examples/WikipediaPageRank.scala
index bc32663..a0c5ac9 100644
--- a/bagel/src/main/scala/spark/bagel/examples/WikipediaPageRank.scala
+++ b/bagel/src/main/scala/spark/bagel/examples/WikipediaPageRank.scala
@@ -1,3 +1,20 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
package spark.bagel.examples
import spark._
http://git-wip-us.apache.org/repos/asf/incubator-spark/blob/af3c9d50/bagel/src/main/scala/spark/bagel/examples/WikipediaPageRankStandalone.scala
----------------------------------------------------------------------
diff --git a/bagel/src/main/scala/spark/bagel/examples/WikipediaPageRankStandalone.scala b/bagel/src/main/scala/spark/bagel/examples/WikipediaPageRankStandalone.scala
index 9d9d80d..3c54a85 100644
--- a/bagel/src/main/scala/spark/bagel/examples/WikipediaPageRankStandalone.scala
+++ b/bagel/src/main/scala/spark/bagel/examples/WikipediaPageRankStandalone.scala
@@ -1,3 +1,20 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
package spark.bagel.examples
import spark._
http://git-wip-us.apache.org/repos/asf/incubator-spark/blob/af3c9d50/bagel/src/test/resources/log4j.properties
----------------------------------------------------------------------
diff --git a/bagel/src/test/resources/log4j.properties b/bagel/src/test/resources/log4j.properties
index 83d05ca..5cdcf35 100644
--- a/bagel/src/test/resources/log4j.properties
+++ b/bagel/src/test/resources/log4j.properties
@@ -1,4 +1,21 @@
-# Set everything to be logged to the file bagel/target/unit-tests.log
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+# Set everything to be logged to the file bagel/target/unit-tests.log
log4j.rootCategory=INFO, file
log4j.appender.file=org.apache.log4j.FileAppender
log4j.appender.file.append=false
http://git-wip-us.apache.org/repos/asf/incubator-spark/blob/af3c9d50/bagel/src/test/scala/bagel/BagelSuite.scala
----------------------------------------------------------------------
diff --git a/bagel/src/test/scala/bagel/BagelSuite.scala b/bagel/src/test/scala/bagel/BagelSuite.scala
index a09c978..ef2d57f 100644
--- a/bagel/src/test/scala/bagel/BagelSuite.scala
+++ b/bagel/src/test/scala/bagel/BagelSuite.scala
@@ -1,3 +1,20 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
package spark.bagel
import org.scalatest.{FunSuite, Assertions, BeforeAndAfter}
http://git-wip-us.apache.org/repos/asf/incubator-spark/blob/af3c9d50/bin/slaves.sh
----------------------------------------------------------------------
diff --git a/bin/slaves.sh b/bin/slaves.sh
index 030581e..c8fb5ca 100755
--- a/bin/slaves.sh
+++ b/bin/slaves.sh
@@ -1,7 +1,5 @@
#!/usr/bin/env bash
-# This Spark deploy script is a modified version of the Apache Hadoop deploy
-# script, available under the Apache 2 license:
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
@@ -10,13 +8,14 @@
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
-# http://www.apache.org/licenses/LICENSE-2.0
+# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
+#
# Run a shell command on all slave hosts.
#
http://git-wip-us.apache.org/repos/asf/incubator-spark/blob/af3c9d50/bin/spark-config.sh
----------------------------------------------------------------------
diff --git a/bin/spark-config.sh b/bin/spark-config.sh
index d4b6558..cd2c7b7 100755
--- a/bin/spark-config.sh
+++ b/bin/spark-config.sh
@@ -1,3 +1,20 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
# included in all the spark scripts with source command
# should not be executable directly
# also should not be passed any arguments, since we need original $*
@@ -16,4 +33,4 @@ this="$config_bin/$script"
export SPARK_PREFIX=`dirname "$this"`/..
export SPARK_HOME=${SPARK_PREFIX}
-export SPARK_CONF_DIR="$SPARK_HOME/conf"
\ No newline at end of file
+export SPARK_CONF_DIR="$SPARK_HOME/conf"
http://git-wip-us.apache.org/repos/asf/incubator-spark/blob/af3c9d50/bin/spark-daemon.sh
----------------------------------------------------------------------
diff --git a/bin/spark-daemon.sh b/bin/spark-daemon.sh
index 8ee3ec4..a5b88ca 100755
--- a/bin/spark-daemon.sh
+++ b/bin/spark-daemon.sh
@@ -1,7 +1,5 @@
#!/usr/bin/env bash
-# This Spark deploy script is a modified version of the Apache Hadoop deploy
-# script, available under the Apache 2 license:
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
@@ -10,13 +8,14 @@
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
-# http://www.apache.org/licenses/LICENSE-2.0
+# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
+#
# Runs a Spark command as a daemon.
#
http://git-wip-us.apache.org/repos/asf/incubator-spark/blob/af3c9d50/bin/spark-daemons.sh
----------------------------------------------------------------------
diff --git a/bin/spark-daemons.sh b/bin/spark-daemons.sh
index 0619097..354eb90 100755
--- a/bin/spark-daemons.sh
+++ b/bin/spark-daemons.sh
@@ -1,5 +1,22 @@
#!/usr/bin/env bash
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
# Run a Spark command on all slave hosts.
usage="Usage: spark-daemons.sh [--config confdir] [--hosts hostlistfile] [start|stop] command instance-number args..."
http://git-wip-us.apache.org/repos/asf/incubator-spark/blob/af3c9d50/bin/start-all.sh
----------------------------------------------------------------------
diff --git a/bin/start-all.sh b/bin/start-all.sh
index b9891ad..0182f1a 100755
--- a/bin/start-all.sh
+++ b/bin/start-all.sh
@@ -1,5 +1,22 @@
#!/usr/bin/env bash
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
# Start all spark daemons.
# Starts the master on this node.
# Starts a worker on each node specified in conf/slaves
http://git-wip-us.apache.org/repos/asf/incubator-spark/blob/af3c9d50/bin/start-master.sh
----------------------------------------------------------------------
diff --git a/bin/start-master.sh b/bin/start-master.sh
index 83a3e1f..2288fb1 100755
--- a/bin/start-master.sh
+++ b/bin/start-master.sh
@@ -1,5 +1,22 @@
#!/usr/bin/env bash
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
# Starts the master on the machine this script is executed on.
bin=`dirname "$0"`
http://git-wip-us.apache.org/repos/asf/incubator-spark/blob/af3c9d50/bin/start-slave.sh
----------------------------------------------------------------------
diff --git a/bin/start-slave.sh b/bin/start-slave.sh
index 1082c09..d6db168 100755
--- a/bin/start-slave.sh
+++ b/bin/start-slave.sh
@@ -1,5 +1,22 @@
#!/usr/bin/env bash
+
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
# Usage: start-slave.sh <worker#> <master-spark-URL>
# where <master-spark-URL> is like "spark://localhost:7077"
http://git-wip-us.apache.org/repos/asf/incubator-spark/blob/af3c9d50/bin/start-slaves.sh
----------------------------------------------------------------------
diff --git a/bin/start-slaves.sh b/bin/start-slaves.sh
index 4e05224..dad7c3d 100755
--- a/bin/start-slaves.sh
+++ b/bin/start-slaves.sh
@@ -1,5 +1,22 @@
#!/usr/bin/env bash
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
bin=`dirname "$0"`
bin=`cd "$bin"; pwd`
http://git-wip-us.apache.org/repos/asf/incubator-spark/blob/af3c9d50/bin/stop-all.sh
----------------------------------------------------------------------
diff --git a/bin/stop-all.sh b/bin/stop-all.sh
index d352f6f..a043ac0 100755
--- a/bin/stop-all.sh
+++ b/bin/stop-all.sh
@@ -1,5 +1,22 @@
#!/usr/bin/env bash
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
# Start all spark daemons.
# Run this on the master nde
http://git-wip-us.apache.org/repos/asf/incubator-spark/blob/af3c9d50/bin/stop-master.sh
----------------------------------------------------------------------
diff --git a/bin/stop-master.sh b/bin/stop-master.sh
index 172ee58..31a610b 100755
--- a/bin/stop-master.sh
+++ b/bin/stop-master.sh
@@ -1,5 +1,22 @@
#!/usr/bin/env bash
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
# Starts the master on the machine this script is executed on.
bin=`dirname "$0"`
http://git-wip-us.apache.org/repos/asf/incubator-spark/blob/af3c9d50/bin/stop-slaves.sh
----------------------------------------------------------------------
diff --git a/bin/stop-slaves.sh b/bin/stop-slaves.sh
index fbfc594..8e056f2 100755
--- a/bin/stop-slaves.sh
+++ b/bin/stop-slaves.sh
@@ -1,5 +1,22 @@
#!/usr/bin/env bash
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
# Starts the master on the machine this script is executed on.
bin=`dirname "$0"`
http://git-wip-us.apache.org/repos/asf/incubator-spark/blob/af3c9d50/core/pom.xml
----------------------------------------------------------------------
diff --git a/core/pom.xml b/core/pom.xml
index dbb2da9..6329b2f 100644
--- a/core/pom.xml
+++ b/core/pom.xml
@@ -1,4 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ ~ Licensed to the Apache Software Foundation (ASF) under one or more
+ ~ contributor license agreements. See the NOTICE file distributed with
+ ~ this work for additional information regarding copyright ownership.
+ ~ The ASF licenses this file to You under the Apache License, Version 2.0
+ ~ (the "License"); you may not use this file except in compliance with
+ ~ the License. You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing, software
+ ~ distributed under the License is distributed on an "AS IS" BASIS,
+ ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ ~ See the License for the specific language governing permissions and
+ ~ limitations under the License.
+ -->
+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
http://git-wip-us.apache.org/repos/asf/incubator-spark/blob/af3c9d50/core/src/hadoop1/scala/org/apache/hadoop/mapred/HadoopMapRedUtil.scala
----------------------------------------------------------------------
diff --git a/core/src/hadoop1/scala/org/apache/hadoop/mapred/HadoopMapRedUtil.scala b/core/src/hadoop1/scala/org/apache/hadoop/mapred/HadoopMapRedUtil.scala
index f286f2c..25386b2 100644
--- a/core/src/hadoop1/scala/org/apache/hadoop/mapred/HadoopMapRedUtil.scala
+++ b/core/src/hadoop1/scala/org/apache/hadoop/mapred/HadoopMapRedUtil.scala
@@ -1,3 +1,20 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
package org.apache.hadoop.mapred
trait HadoopMapRedUtil {
http://git-wip-us.apache.org/repos/asf/incubator-spark/blob/af3c9d50/core/src/hadoop1/scala/org/apache/hadoop/mapreduce/HadoopMapReduceUtil.scala
----------------------------------------------------------------------
diff --git a/core/src/hadoop1/scala/org/apache/hadoop/mapreduce/HadoopMapReduceUtil.scala b/core/src/hadoop1/scala/org/apache/hadoop/mapreduce/HadoopMapReduceUtil.scala
index 264d421..b1002e0 100644
--- a/core/src/hadoop1/scala/org/apache/hadoop/mapreduce/HadoopMapReduceUtil.scala
+++ b/core/src/hadoop1/scala/org/apache/hadoop/mapreduce/HadoopMapReduceUtil.scala
@@ -1,3 +1,20 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
package org.apache.hadoop.mapreduce
import org.apache.hadoop.conf.Configuration
http://git-wip-us.apache.org/repos/asf/incubator-spark/blob/af3c9d50/core/src/hadoop1/scala/spark/deploy/SparkHadoopUtil.scala
----------------------------------------------------------------------
diff --git a/core/src/hadoop1/scala/spark/deploy/SparkHadoopUtil.scala b/core/src/hadoop1/scala/spark/deploy/SparkHadoopUtil.scala
index f1c86de..df55be1 100644
--- a/core/src/hadoop1/scala/spark/deploy/SparkHadoopUtil.scala
+++ b/core/src/hadoop1/scala/spark/deploy/SparkHadoopUtil.scala
@@ -1,3 +1,20 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
package spark.deploy
import org.apache.hadoop.conf.Configuration
import org.apache.hadoop.mapred.JobConf
http://git-wip-us.apache.org/repos/asf/incubator-spark/blob/af3c9d50/core/src/hadoop2-yarn/scala/org/apache/hadoop/mapred/HadoopMapRedUtil.scala
----------------------------------------------------------------------
diff --git a/core/src/hadoop2-yarn/scala/org/apache/hadoop/mapred/HadoopMapRedUtil.scala b/core/src/hadoop2-yarn/scala/org/apache/hadoop/mapred/HadoopMapRedUtil.scala
index 875c0a2..0f972b7 100644
--- a/core/src/hadoop2-yarn/scala/org/apache/hadoop/mapred/HadoopMapRedUtil.scala
+++ b/core/src/hadoop2-yarn/scala/org/apache/hadoop/mapred/HadoopMapRedUtil.scala
@@ -1,4 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
package org.apache.hadoop.mapred
import org.apache.hadoop.mapreduce.TaskType
http://git-wip-us.apache.org/repos/asf/incubator-spark/blob/af3c9d50/core/src/hadoop2-yarn/scala/org/apache/hadoop/mapreduce/HadoopMapReduceUtil.scala
----------------------------------------------------------------------
diff --git a/core/src/hadoop2-yarn/scala/org/apache/hadoop/mapreduce/HadoopMapReduceUtil.scala b/core/src/hadoop2-yarn/scala/org/apache/hadoop/mapreduce/HadoopMapReduceUtil.scala
index 8bc6fb6..1a7cdf4 100644
--- a/core/src/hadoop2-yarn/scala/org/apache/hadoop/mapreduce/HadoopMapReduceUtil.scala
+++ b/core/src/hadoop2-yarn/scala/org/apache/hadoop/mapreduce/HadoopMapReduceUtil.scala
@@ -1,3 +1,20 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
package org.apache.hadoop.mapreduce
import org.apache.hadoop.conf.Configuration
http://git-wip-us.apache.org/repos/asf/incubator-spark/blob/af3c9d50/core/src/hadoop2-yarn/scala/spark/deploy/SparkHadoopUtil.scala
----------------------------------------------------------------------
diff --git a/core/src/hadoop2-yarn/scala/spark/deploy/SparkHadoopUtil.scala b/core/src/hadoop2-yarn/scala/spark/deploy/SparkHadoopUtil.scala
index 301a57f..6122fdc 100644
--- a/core/src/hadoop2-yarn/scala/spark/deploy/SparkHadoopUtil.scala
+++ b/core/src/hadoop2-yarn/scala/spark/deploy/SparkHadoopUtil.scala
@@ -1,3 +1,20 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
package spark.deploy
import collection.mutable.HashMap
http://git-wip-us.apache.org/repos/asf/incubator-spark/blob/af3c9d50/core/src/hadoop2-yarn/scala/spark/deploy/yarn/ApplicationMaster.scala
----------------------------------------------------------------------
diff --git a/core/src/hadoop2-yarn/scala/spark/deploy/yarn/ApplicationMaster.scala b/core/src/hadoop2-yarn/scala/spark/deploy/yarn/ApplicationMaster.scala
index 6a0617c..1b06169 100644
--- a/core/src/hadoop2-yarn/scala/spark/deploy/yarn/ApplicationMaster.scala
+++ b/core/src/hadoop2-yarn/scala/spark/deploy/yarn/ApplicationMaster.scala
@@ -1,3 +1,20 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
package spark.deploy.yarn
import java.net.Socket
http://git-wip-us.apache.org/repos/asf/incubator-spark/blob/af3c9d50/core/src/hadoop2-yarn/scala/spark/deploy/yarn/ApplicationMasterArguments.scala
----------------------------------------------------------------------
diff --git a/core/src/hadoop2-yarn/scala/spark/deploy/yarn/ApplicationMasterArguments.scala b/core/src/hadoop2-yarn/scala/spark/deploy/yarn/ApplicationMasterArguments.scala
index 1b00208..8de44b1 100644
--- a/core/src/hadoop2-yarn/scala/spark/deploy/yarn/ApplicationMasterArguments.scala
+++ b/core/src/hadoop2-yarn/scala/spark/deploy/yarn/ApplicationMasterArguments.scala
@@ -1,3 +1,20 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
package spark.deploy.yarn
import spark.util.IntParam
http://git-wip-us.apache.org/repos/asf/incubator-spark/blob/af3c9d50/core/src/hadoop2-yarn/scala/spark/deploy/yarn/Client.scala
----------------------------------------------------------------------
diff --git a/core/src/hadoop2-yarn/scala/spark/deploy/yarn/Client.scala b/core/src/hadoop2-yarn/scala/spark/deploy/yarn/Client.scala
index 514c17f..8bcbfc2 100644
--- a/core/src/hadoop2-yarn/scala/spark/deploy/yarn/Client.scala
+++ b/core/src/hadoop2-yarn/scala/spark/deploy/yarn/Client.scala
@@ -1,3 +1,20 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
package spark.deploy.yarn
import java.net.{InetSocketAddress, URI}
http://git-wip-us.apache.org/repos/asf/incubator-spark/blob/af3c9d50/core/src/hadoop2-yarn/scala/spark/deploy/yarn/ClientArguments.scala
----------------------------------------------------------------------
diff --git a/core/src/hadoop2-yarn/scala/spark/deploy/yarn/ClientArguments.scala b/core/src/hadoop2-yarn/scala/spark/deploy/yarn/ClientArguments.scala
index 07e7ede..67aff03 100644
--- a/core/src/hadoop2-yarn/scala/spark/deploy/yarn/ClientArguments.scala
+++ b/core/src/hadoop2-yarn/scala/spark/deploy/yarn/ClientArguments.scala
@@ -1,3 +1,20 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
package spark.deploy.yarn
import spark.util.MemoryParam
http://git-wip-us.apache.org/repos/asf/incubator-spark/blob/af3c9d50/core/src/hadoop2-yarn/scala/spark/deploy/yarn/WorkerRunnable.scala
----------------------------------------------------------------------
diff --git a/core/src/hadoop2-yarn/scala/spark/deploy/yarn/WorkerRunnable.scala b/core/src/hadoop2-yarn/scala/spark/deploy/yarn/WorkerRunnable.scala
index cc6f334..f458f2f 100644
--- a/core/src/hadoop2-yarn/scala/spark/deploy/yarn/WorkerRunnable.scala
+++ b/core/src/hadoop2-yarn/scala/spark/deploy/yarn/WorkerRunnable.scala
@@ -1,3 +1,20 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
package spark.deploy.yarn
import java.net.URI
http://git-wip-us.apache.org/repos/asf/incubator-spark/blob/af3c9d50/core/src/hadoop2-yarn/scala/spark/deploy/yarn/YarnAllocationHandler.scala
----------------------------------------------------------------------
diff --git a/core/src/hadoop2-yarn/scala/spark/deploy/yarn/YarnAllocationHandler.scala b/core/src/hadoop2-yarn/scala/spark/deploy/yarn/YarnAllocationHandler.scala
index 61dd72a..b0af8ba 100644
--- a/core/src/hadoop2-yarn/scala/spark/deploy/yarn/YarnAllocationHandler.scala
+++ b/core/src/hadoop2-yarn/scala/spark/deploy/yarn/YarnAllocationHandler.scala
@@ -1,3 +1,20 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
package spark.deploy.yarn
import spark.{Logging, Utils}
http://git-wip-us.apache.org/repos/asf/incubator-spark/blob/af3c9d50/core/src/hadoop2-yarn/scala/spark/scheduler/cluster/YarnClusterScheduler.scala
----------------------------------------------------------------------
diff --git a/core/src/hadoop2-yarn/scala/spark/scheduler/cluster/YarnClusterScheduler.scala b/core/src/hadoop2-yarn/scala/spark/scheduler/cluster/YarnClusterScheduler.scala
index ed732d3..307d961 100644
--- a/core/src/hadoop2-yarn/scala/spark/scheduler/cluster/YarnClusterScheduler.scala
+++ b/core/src/hadoop2-yarn/scala/spark/scheduler/cluster/YarnClusterScheduler.scala
@@ -1,3 +1,20 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
package spark.scheduler.cluster
import spark._
http://git-wip-us.apache.org/repos/asf/incubator-spark/blob/af3c9d50/core/src/hadoop2/scala/org/apache/hadoop/mapred/HadoopMapRedUtil.scala
----------------------------------------------------------------------
diff --git a/core/src/hadoop2/scala/org/apache/hadoop/mapred/HadoopMapRedUtil.scala b/core/src/hadoop2/scala/org/apache/hadoop/mapred/HadoopMapRedUtil.scala
index a0652d7..4b3d846 100644
--- a/core/src/hadoop2/scala/org/apache/hadoop/mapred/HadoopMapRedUtil.scala
+++ b/core/src/hadoop2/scala/org/apache/hadoop/mapred/HadoopMapRedUtil.scala
@@ -1,3 +1,20 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
package org.apache.hadoop.mapred
trait HadoopMapRedUtil {
http://git-wip-us.apache.org/repos/asf/incubator-spark/blob/af3c9d50/core/src/hadoop2/scala/org/apache/hadoop/mapreduce/HadoopMapReduceUtil.scala
----------------------------------------------------------------------
diff --git a/core/src/hadoop2/scala/org/apache/hadoop/mapreduce/HadoopMapReduceUtil.scala b/core/src/hadoop2/scala/org/apache/hadoop/mapreduce/HadoopMapReduceUtil.scala
index 7fdbe32..aa3b1ed 100644
--- a/core/src/hadoop2/scala/org/apache/hadoop/mapreduce/HadoopMapReduceUtil.scala
+++ b/core/src/hadoop2/scala/org/apache/hadoop/mapreduce/HadoopMapReduceUtil.scala
@@ -1,3 +1,20 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
package org.apache.hadoop.mapreduce
import org.apache.hadoop.conf.Configuration