MapD表格导出测试

\gpu

1.1万行数据测试:

COPY (SELECT * FROM flights_2008_10k) TO '/mapd-core/build/sample_datasets/flights_2008_new/flights_2008_new.csv';

验证:

create table test (
..> flight_year smallint,
..> flight_month smallint,
..> flight_dayofmonth smallint,
..> flight_dayofweek smallint,
..> deptime smallint,
..> crsdeptime smallint,
..> arrtime smallint,
..> crsarrtime smallint,
..> uniquecarrier text encoding dict,
..> flightnum smallint,
..> tailnum text encoding dict,
..> actualelapsedtime smallint,
..> crselapsedtime smallint,
..> airtime smallint,
..> arrdelay smallint,
..> depdelay smallint,
..> origin text encoding dict,
..> dest text encoding dict,
..> distance smallint,
..> taxiin smallint,
..> taxiout smallint,
..> cancelled smallint,
..> cancellationcode text encoding dict,
..> diverted smallint,
..> carrierdelay smallint,
..> weatherdelay smallint,
..> nasdelay smallint,
..> securitydelay smallint,
..> lateaircraftdelay smallint,
..> dep_timestamp timestamp(0),
..> arr_timestamp timestamp(0),
..> carrier_name text encoding dict,
..> plane_type text encoding dict,
..> plane_manufacturer text encoding dict,
..> plane_issue_date date,
..> plane_model text encoding dict,
..> plane_status text encoding dict,
..> plane_aircraft_type text encoding dict,
..> plane_engine_type text encoding dict,
..> plane_year smallint,
..> origin_name text encoding dict,
..> origin_city text encoding dict,
..> origin_state text encoding dict,
..> origin_country text encoding dict,
..> origin_lat real,
..> origin_lon real,
..> dest_name text encoding dict,
..> dest_city text encoding dict,
..> dest_state text encoding dict,
..> dest_country text encoding dict,
..> dest_lat real,
..> dest_lon real,
..> origin_merc_x real,
..> origin_merc_y real,
..> dest_merc_x real,
..> dest_merc_y real
..> );

copy test from '/mapd-core/build/sample_datasets/flights_2008_new/flights_2008_new.csv' with (quoted='true');
Result
Loaded: 10000 recs, Rejected: 0 recs in 28.290000 secs

2.20万行数据测试:

COPY (SELECT * FROM flights_2008_200k) TO '/mapd-core/build/sample_datasets/flights_2008_new/flights_2008_new1.csv';

验证:

copy test from '/mapd-core/build/sample_datasets/flights_2008_new/flights_2008_new1.csv' with (quoted='true');
Result
Loaded: 200000 recs, Rejected: 0 recs in 1.924000 secs

3.700万行数据测试:

COPY (SELECT * FROM flights_2008_7M) TO '/mapd-core/build/sample_datasets/flights_2008_new/flights_2008_new2.csv';

报错:GPU内存不足:E0628 10:31:13.320468 30484 MapDHandler.cpp:2384] Exception: Query couldn't keep the entire working set of columns in GPU memory
Exception: Query couldn't keep the entire working set of columns in GPU memor

\cpu

1.直接测700万行数据:

COPY (SELECT * FROM flights_2008_7M) TO '/mapd-core/build/sample_datasets/flights_2008_new/flights_2008_new2.csv';(花费时间:40-60分钟)

验证:

copy test from '/mapd-core/build/sample_datasets/flights_2008_new/flights_2008_new2.csv' with (quoted='true');
Result
Loaded: 7009728 recs, Rejected: 0 recs in 60.079000 secs

2.测2800万行数据:

COPY (SELECT * FROM flights_2008_28M) TO '/mapd-core/build/sample_datasets/flights_2008_new/flights_2008_new3.csv';(花费时间:259分钟)

(%cpu:100   %mem:16)

验证:

copy test from '/mapd-core/build/sample_datasets/flights_2008_new/flights_2008_new3.csv' with (quoted='true');

Result
Loaded: 28248912 recs, Rejected: 0 recs in 344.980000 secs

(%cpu:3000-4000   %mem:6)

3..测试1亿行:

COPY (SELECT * FROM flights_2008_100M) TO '/mapd-core/build/sample_datasets/flights_2008_new/flights_2008_new3.csv';

报错:Thrift: Wed Jun 28 12:38:38 2017 TSocket::write_partial() send() <Host: localhost Port: 9091>Broken pipe
Thrift: Wed Jun 28 12:38:38 2017 TSocket::open() connect() <Host: localhost Port: 9091>Connection refused
Thrift: Wed Jun 28 12:38:38 2017 TSocket::open() connect() <Host: localhost Port: 9091>Connection refused
Thrift error: connect() failed: Connection refused

第二次尝试:

Thrift: Wed Jun 28 13:38:09 2017 TSocket::write_partial() send() <Host: localhost Port: 9091>Broken pipe
Thrift: Wed Jun 28 13:38:09 2017 TSocket::open() connect() <Host: localhost Port: 9091>Connection refused
Thrift: Wed Jun 28 13:38:09 2017 TSocket::open() connect() <Host: localhost Port: 9091>Connection refused
Thrift error: connect() failed: Connection refused

 

转载于:https://www.cnblogs.com/laozhuang/p/7089340.html

1、资源项目源码均已通过严格测试验证,保证能够正常运行; 2、项目问题、技术讨论,可以给博主私信或留言,博主看到后会第一时间与您进行沟通; 3、本项目比较适合计算机领域相关的毕业设计课题、课程作业等使用,尤其对于人工智能、计算机科学与技术等相关专业,更为适合; 、4下载使用后,可先查看README.md或论文文件(如有),本项目仅用作交流学习参考,请切勿用于商业用途。 5、资源来自互联网采集,如有侵权,私聊博主删除。 6、可私信博主看论文后选择购买源代码。 1、资源项目源码均已通过严格测试验证,保证能够正常运行; 2、项目问题、技术讨论,可以给博主私信或留言,博主看到后会第一时间与您进行沟通; 3、本项目比较适合计算机领域相关的毕业设计课题、课程作业等使用,尤其对于人工智能、计算机科学与技术等相关专业,更为适合;、下载 4使用后,可先查看README.md或论文文件(如有),本项目仅用作交流学习参考,请切勿用于商业用途。 5、资源来自互联网采集,如有侵权,私聊博主删除。 6、可私信博主看论文后选择购买源代码。 1、资源项目源码均已通过严格测试验证,保证能够正常运行; 2、项目问题、技术讨论,可以给博主私信或留言,博主看到后会第一时间与您进行沟通; 3、本项目比较适合计算机领域相关的毕业设计课题、课程作业等使用,尤其对于人工智能、计算机科学与技术等相关专业,更为适合;、 4下载使用后,可先查看README.md或论文文件(如有),本项目仅用作交流学习参考,请切勿用于商业用途。 5、资源来自互联网采集,如有侵权,私聊博主删除。 6、可私信博主看论文后选择购买源代码。
1、资源项目源码均已通过严格测试验证,保证能够正常运行; 2、项目问题、技术讨论,可以给博主私信或留言,博主看到后会第一时间与您进行沟通; 3、本项目比较适合计算机领域相关的毕业设计课题、课程作业等使用,尤其对于人工智能、计算机科学与技术等相关专业,更为适合; 4、下载使用后,可先查看README.md或论文文件(如有),本项目仅用作交流学习参考,请切勿用于商业用途。 5、资源来自互联网采集,如有侵权,私聊博主删除。 6、可私信博主看论文后选择购买源代码。 1、资源项目源码均已通过严格测试验证,保证能够正常运行; 2、项目问题、技术讨论,可以给博主私信或留言,博主看到后会第一时间与您进行沟通; 3、本项目比较适合计算机领域相关的毕业设计课题、课程作业等使用,尤其对于人工智能、计算机科学与技术等相关专业,更为适合; 4、下载使用后,可先查看README.m或d论文文件(如有),本项目仅用作交流学习参考,请切勿用于商业用途。 5、资源来自互联网采集,如有侵权,私聊博主删除。 6、可私信博主看论文后选择购买源代码。 、1资源项目源码均已通过严格测试验证,保证能够正常运行; 2、项目问题、技术讨论,可以给博主私信或留言,博主看到后会第一时间与您进行沟通; 3、本项目比较适合计算机领域相关的毕业设计课题、课程作业等使用,尤其对于人工智能、计算机科学与技术等相关专业,更为适合; 4、下载使用后,可先查看README.md或论文文件(如有),本项目仅用作交流学习参考,请切勿用于商业用途。 5、资源来自互联网采集,如有侵权,私聊博主删除。 6、可私信博主看论文后选择购买源代码。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值