NYC Citibike Demand演示数据访问错误

时间:2018-07-09 15:54:11

标签: python h2o

NYC Citibike Demand with Weather (Large)的笔记本电脑演示由于访问Citibike数据集的错误而无法在本地运行。当运行以下单元格时:

big_test =   [mylocate("bigdata/laptop/citibike-nyc/2013-07.csv"),
          mylocate("bigdata/laptop/citibike-nyc/2013-08.csv"),
          mylocate("bigdata/laptop/citibike-nyc/2013-09.csv"),
          mylocate("bigdata/laptop/citibike-nyc/2013-10.csv"),
          mylocate("bigdata/laptop/citibike-nyc/2013-11.csv"),
          mylocate("bigdata/laptop/citibike-nyc/2013-12.csv"),
          mylocate("bigdata/laptop/citibike-nyc/2014-01.csv"),
          mylocate("bigdata/laptop/citibike-nyc/2014-02.csv"),
          mylocate("bigdata/laptop/citibike-nyc/2014-03.csv"),
          mylocate("bigdata/laptop/citibike-nyc/2014-04.csv"),
          mylocate("bigdata/laptop/citibike-nyc/2014-05.csv"),
          mylocate("bigdata/laptop/citibike-nyc/2014-06.csv"),
          mylocate("bigdata/laptop/citibike-nyc/2014-07.csv"),
          mylocate("bigdata/laptop/citibike-nyc/2014-08.csv")]

# ----------

# 1- Load data - 1 row per bicycle trip.  Has columns showing the start and end
# station, trip duration and trip start time and day.  The larger dataset
# totals about 10 million rows
print("Import and Parse bike data")
data = h2o.import_file(path=big_test)

如果data_source_is_s3设置为true,则会输出以下错误:

H2OResponseError: Server error java.lang.IllegalArgumentException:
  Error: AWS Access Key ID and Secret Access Key must be specified as the username or password (respectively) of a s3n URL, or by setting the fs.s3n.awsAccessKeyId or fs.s3n.awsSecretAccessKey properties (respectively).
  Request: GET /3/ImportFiles
    params: {'path': 's3n://h2o-public-test-data/bigdata/laptop/citibike-nyc/2013-07.csv'}

,如果data_source_is_s3设置为False,则执行以下操作:

ValueError: File not found: bigdata/laptop/citibike-nyc/2013-10.csv

0 个答案:

没有答案