Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cc <- rxSparkConnect(reset = TRUE, nameNode="wasb://benchmark@airlinecranrscaler.blob.core.windows.net/", driverMem="4g", numExecutors=4, executorCores=5, executorMem="16g", executorOverheadMem="4g")
- # prepare hive data 1M, 2M, 5M, 10M, 100M
- hdfs <- RxHdfsFileSystem(hostName="wasb://benchmark@airlinecranrscaler.blob.core.windows.net/")
- airText <- RxTextData("wasb://benchmark@airlinecranrscaler.blob.core.windows.net/airline/csv/airOT1M", firstRowIsColNames=T, fileSystem=hdfs)
- airHive <- RxHiveData(table="airOT1M")
- rxDataStep(airText, airHive)
- airText <- RxTextData("wasb://benchmark@airlinecranrscaler.blob.core.windows.net/airline/csv/airOT2M", firstRowIsColNames=T, fileSystem=hdfs)
- airHive <- RxHiveData(table="airOT2M")
- rxDataStep(airText, airHive)
- airText <- RxTextData("wasb://benchmark@airlinecranrscaler.blob.core.windows.net/airline/csv/airOT5M", firstRowIsColNames=T, fileSystem=hdfs)
- airHive <- RxHiveData(table="airOT5M")
- rxDataStep(airText, airHive)
- airText <- RxTextData("wasb://benchmark@airlinecranrscaler.blob.core.windows.net/airline/csv/airOT10M", firstRowIsColNames=T, fileSystem=hdfs)
- airHive <- RxHiveData(table="airOT10M")
- rxDataStep(airText, airHive)
- airText <- RxTextData("wasb://benchmark@airlinecranrscaler.blob.core.windows.net/airline/csv/airOT100M", firstRowIsColNames=T, fileSystem=hdfs)
- airHive <- RxHiveData(table="airOT100M")
- rxDataStep(airText, airHive)
- rxSparkDisconnect(cc)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement