-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New partitioner: KD-Tree partitioner #127
base: master
Are you sure you want to change the base?
Changes from all commits
f7c72a8
c97e69a
9f486d1
1d282dc
a6f1b74
4382b67
82e085a
a7a385d
ff2086a
1bf8b37
bf3a9ee
195169e
1be165f
973bb67
be83043
3c21725
f27582b
6d76411
3de67ec
b2c83b1
e65baa3
ac60b6c
f119781
e3f3a8f
472264d
e02828e
5ed8977
1827df4
ce2745e
0d9004e
e7ded79
2606485
1d54c58
0048ce4
0f23805
300d28a
00a8b3a
7e6dcae
97420ec
1775a8e
2189f56
d9c8b57
71f15e5
e4b541e
1eb1665
3feb9f7
9065432
57b6705
3927c4c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
#!/bin/bash | ||
|
||
SBT_VERSION_SPARK=2.11 | ||
VERSION=0.3.1 | ||
|
||
# Compile the code | ||
sbt ++2.11.8 package | ||
|
||
PACK=com.github.astrolabsoftware:spark-fits_2.11:0.7.1 | ||
SF=target/scala-2.11/spark3d_2.11-${VERSION}.jar | ||
HP=lib/jhealpix.jar | ||
|
||
#MASTERURL=spark://134.158.75.222:7077 | ||
MASTERURL=yarn | ||
# fitsfn=hdfs://134.158.75.222:8020//lsst/LSST1Y/out_srcs_s1_3.fits | ||
# fitsfn=hdfs://134.158.75.222:8020/user/alia/a.fits | ||
fitsfn=hdfs://134.158.75.222:8020/user/julien.peloton/dc2 | ||
|
||
#This is used in evaluation of the KDtree partitioner | ||
sum=0 | ||
for i in {1..10} | ||
do | ||
echo "Run number is $i" | ||
start_time="$(date -u +%s)" | ||
spark-submit \ | ||
--master ${MASTERURL} \ | ||
--driver-memory 4g --executor-memory 28g --executor-cores 17 --total-executor-cores 102 \ | ||
--jars ${SF},${HP} --packages ${PACK} \ | ||
--class com.astrolabsoftware.spark3d.examples.Test \ | ||
target/scala-${SBT_VERSION_SPARK}/spark3d_${SBT_VERSION_SPARK}-${VERSION}.jar \ | ||
$fitsfn 1 "position_x_mock,position_y_mock,position_z_mock" true "kdtree" 8 "col" | ||
end_time="$(date -u +%s)" | ||
elapsed="$(($end_time-$start_time))" | ||
echo "Total of $elapsed seconds elapsed for process" | ||
sum="$(($sum+$elapsed))" | ||
wait | ||
done | ||
avgT="$(($sum/10))" | ||
echo "average elapsed time is $avgT " | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,21 +11,31 @@ SF=target/scala-2.11/spark3d_2.11-${VERSION}.jar | |
HP=lib/jhealpix.jar,lib/plotly-assembly-0.3.0-SNAPSHOT.jar | ||
|
||
MASTERURL=yarn | ||
inputfn="LSST1Y/out_srcs_s1_0.fits" | ||
#inputfn="LSST1Y/out_srcs_s1_0.fits" | ||
#inputfn=hdfs://134.158.75.222:8020//lsst/LSST1Y/out_srcs_s1_3.fits | ||
#spark-submit \ | ||
# --master ${MASTERURL} \ | ||
# --driver-memory 4g --executor-memory 28g --executor-cores 17 --total-executor-cores 102 \ | ||
# --jars ${SF},${HP} --packages ${PACK} \ | ||
# --class com.astrolabsoftware.spark3d.examples.VisualizePart \ | ||
#target/scala-${SCAlA_VERSION}/spark3d_${SCAlA_VERSION}-${VERSION}.jar \ | ||
# $inputfn "Z_COSMO,RA,DEC" true "onion" 8 0.0001 "username" "api_key" | ||
|
||
spark-submit \ | ||
--master ${MASTERURL} \ | ||
--driver-memory 4g --executor-memory 28g --executor-cores 17 --total-executor-cores 102 \ | ||
--jars ${SF},${HP} --packages ${PACK} \ | ||
--class com.astrolabsoftware.spark3d.examples.VisualizePart \ | ||
target/scala-${SCAlA_VERSION}/spark3d_${SCAlA_VERSION}-${VERSION}.jar \ | ||
$inputfn "Z_COSMO,RA,DEC" true "onion" 8 0.0001 "username" "api_key" | ||
#inputfn=hdfs://134.158.75.222:8020/user/julien.peloton/dc2 | ||
#spark-submit \ | ||
# --master ${MASTERURL} \ | ||
# --driver-memory 4g --executor-memory 28g --executor-cores 17 --total-executor-cores 102 \ | ||
# --jars ${SP},${HP} --packages ${PACK} \ | ||
# --class com.astrolabsoftware.spark3d.examples.VisualizePart \ | ||
# target/scala-${SCAlA_VERSION}/spark3d_${SCAlA_VERSION}-${VERSION}.jar \ | ||
# $inputfn "position_x_mock,position_y_mock,position_z_mock" false "octree" 512 0.001 "abualia4" "GFz0cUDumcKcnhpMd8qw" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Again, the general rule is to never push sensitive information in a repo! Could you remove your username and api key? |
||
|
||
inputfn="dc2" | ||
inputfn=hdfs://134.158.75.222:8020/user/julien.peloton/dc2_rand | ||
spark-submit \ | ||
--master ${MASTERURL} \ | ||
--driver-memory 4g --executor-memory 28g --executor-cores 17 --total-executor-cores 102 \ | ||
--jars ${SP},${HP} --packages ${PACK} \ | ||
--class com.astrolabsoftware.spark3d.examples.VisualizePart \ | ||
--driver-memory 4g --executor-memory 28g --executor-cores 17 --total-executor-cores 102 \ | ||
--jars ${SP},${HP} --packages ${PACK} \ | ||
--class com.astrolabsoftware.spark3d.examples.VisualizePart \ | ||
target/scala-${SCAlA_VERSION}/spark3d_${SCAlA_VERSION}-${VERSION}.jar \ | ||
$inputfn "position_x_mock,position_y_mock,position_z_mock" false "octree" 512 0.001 "username" "api_key" | ||
$inputfn "position_x_mock,position_y_mock,position_z_mock" false "kdtree" 512 0.001 "abualia4" "GFz0cUDumcKcnhpMd8qw" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Again, the general rule is to never push sensitive information in a repo! Could you remove your username and api key? |
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The general rule is to not commit URL in a repo. Please keep the previous empty variables: