stocator

No FileSystem for scheme: cos

左心房为你撑大大i 提交于 2019-12-11 03:35:15
问题 I'm trying to connect to IBM Cloud Object Storage from IBM Data Science Experience: access_key = 'XXX' secret_key = 'XXX' bucket = 'mybucket' host = 'lon.ibmselect.objstor.com' service = 'mycos' sqlCxt = SQLContext(sc) hconf = sc._jsc.hadoopConfiguration() hconf.set('fs.cos.myCos.access.key', access_key) hconf.set('fs.cos.myCos.endpoint', 'http://' + host) hconf.set('fs.cose.myCos.secret.key', secret_key) hconf.set('fs.cos.service.v2.signer.type', 'false') obj = 'mydata.tsv.gz' rdd = sc