I hereby claim:
- I am calixtofelipe on github.
- I am calixtofelipe (https://keybase.io/calixtofelipe) on keybase.
- I have a public key ASDBYpD66u_oKGdEG1b4MXWDKBSaqS0Nojl1pXUqPFpeYwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
from pyspark import SparkContext | |
from pyspark.sql import SparkSession, dataframe | |
import pyspark.sql.functions as F | |
from config import MONGO_URI, S3_ENDPOINT,S3_BUCKET, S3_ACCESS, S3_SECRET, \ | |
S3_COLLECTION,S3_BUCKET_READ, ORACLE_URL, ORACLE_TABLE, ORACLE_USER, ORACLE_PASSWORD | |
def s3_2_oracle(): | |
spark = SparkSession.builder.getOrCreate() |
# 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 | |
# | |
# https://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. |
from pyspark import SparkContext | |
from pyspark.sql import SparkSession, dataframe | |
from config import MONGO_URI, S3_ENDPOINT,S3_BUCKET, S3_ACCESS, S3_SECRET, S3_COLLECTION | |
def mongo_2_s3(): | |
spark_mongo = ( | |
SparkSession.builder.appName("spark_get_mongo") | |
.config("spark.mongodb.input.uri", MONGO_URI) | |
.config("spark.mongodb.output.uri", MONGO_URI) |