我想尝试加密的大查询客户端进行谷歌大查询,我遇到了一些麻烦。
我按照本PDF中的说明进行操作:
https://docs.google.com/file/d/0B-WB8hYCrhZ6cmxfWFpBci1lOVE/edit
我到了运行此命令的地步:
ebq load --master_key_filename="key_file" testdataset.cars cars.csv cars.schema
我收到的错误字符串以:
结尾raise ValueError("No JSON object could be decoded")
我为.csv和.schema文件尝试了几种不同的格式,但没有一种有效。这是我的最新版本。
cars.schema:
[{"name": "Year", "type": "integer", "mode": "required", "encrypt": "none"}
{"name": "Make", "type": "string", "mode": "required", "encrypt": "pseudonym"}
{"name": "Model", "type": "string", "mode": "required", "encrypt": "probabilistic_searchwords"}
{"name": "Description", "type": "string", "mode": "nullable", "encrypt": "searchwords"}
{"name": "Website", "type": "string", "mode": "nullable", "encrypt": "searchwords","searchwords_separator": "/"}
{"name": "Price", "type": "float", "mode": "required", "encrypt": "probabilistic"}
{"name": "Invoice_Price", "type": "integer", "mode": "required", "encrypt": "homomorphic"}
{"name": "Holdback_Percentage", "type": "float", "mode": "required", "encrypt":"homomorphic"}]
cars.csv:
1997,Ford,E350, "ac\xc4a\x87, abs, moon","www.ford.com",3000.00,2000,1.2
1999,Chevy,"Venture ""Extended Edition""","","www.cheverolet.com",4900.00,3800,2.3
1999,Chevy,"Venture ""Extended Edition, Very Large""","","www.chevrolet.com",5000.00,4300,1.9
1996,Jeep,Grand Cherokee,"MUST SELL! air, moon roof,loaded","www.chrysler.com/jeep/grandcherokee",4799.00,3950,2.4
答案 0 :(得分:1)
我认为问题可能是您需要在--master_key_filename
参数之前移动load
参数。如果这不起作用,您可以发送添加--apilog=-
作为第一个参数的输出吗?
此外,还有一个运行ebq的示例脚本文件: https://code.google.com/p/bigquery-e2e/source/browse/#git%2Fsamples%2Fch13