Comperhensive data exploration for mining surveyors and operators.
first, connect to your gcloud acount on your device terminal
gcloud auth loginCreate a new project
gcloud projects create PROJECT_ID
gcloud config set project PROJECT_IDSetup the project by running setup script
./setup.bashNote: This step will take you a while, you might be exitted while running the script. If that happen, simply running the script again with the same name will work
In this scenario, surveyor must push the data to the bucket and after that a job can be submitted. To run this process, simply running:
./send_data.bash <cluster-name> <bucket-name> <path/to/file.csv>Sample file can be downloaded from here: https://ecat.ga.gov.au/geonetwork/srv/eng/catalog.search#/metadata/145120
After that is done, surveyor can then run this process to perform query to the table.
./update_preview.bash <cluster-name> <bucket-name>Then surveyor can view the result by copying the notebook file (minex_view.ipynb) to Bigquery studio. Sample results can be viewed from the current notebook file.
This removes all table from metastore
gcloud dataproc jobs submit pyspark --cluster=<cluster_name> --region="<region>" gs://<bucket_name>/jobs/drop_all.py