设置Amazon Athena和QuickSight的成本和使用率报告错误

时间:2019-05-07 02:25:42

标签: amazon-web-services amazon-s3 amazon-cloudformation amazon-athena amazon-quicksight

我正在追踪this link,以向雅典娜设置费用和使用情况报告。

此刻我成功启动了堆栈并添加了lambda触发器。

基于指南,此时,在Lambda控制台中,我应该创建了这5个函数。 aws-cost-n-usage-S3-lambda-fn-B AWS成本N使用主要Lambda FN AWS成本n使用S3-lambda-fn-B-2 AWS成本n使用雅典娜lambda fn C AWS成本n使用雅典娜lambda-fn-C-2

但是我想念fn-c和fn-c-2

在检查我的Athena控制台后,我也遇到了一些无法创建任何表的问题,

Athena SQL查询:

CREATE TABLE aws_billing_report.parquet_my_cur_report_pass_3_month_view_03
WITH (external_location = 's3://athena-cau-ndjson/parq_sum/view-mon-03-yr-2019/',
    format = 'Parquet',
    parquet_compression = 'SNAPPY')
AS SELECT bill_billingperiodstartdate, bill_billingperiodenddate, lineItem_UsageStartDate, lineItem_UsageEndDate, identity_LineItemId, identity_TimeInterval, bill_InvoiceId, bill_BillingEntity, bill_BillType, bill_PayerAccountId, lineItem_UsageAccountId, lineItem_ProductCode, lineItem_UsageType, lineItem_Operation, lineItem_AvailabilityZone, lineitem_usageamount, lineItem_NormalizationFactor, lineItem_NormalizedUsageAmount, lineItem_CurrencyCode, lineitem_unblendedrate, lineitem_blendedrate, lineitem_unblendedcost, lineItem_blendedCost, lineItem_TaxType, lineitem_resourceid, product_ProductName, product_instanceFamily, product_instanceType, product_productFamily, product_storage, product_storageClass, product_usagetype, product_volumeType, product_region, product_fromlocation, pricing_term, reservation_upfrontvalue, reservation_unusedquantity, reservation_effectivecost, month, year
FROM aws_billing_report.parquet_my_cur_report_year_2019_month_03

,错误输出与此类似:

Your query has the following error(s):
SYNTAX_ERROR: line 49:3: Schema aws_billing_report does not exist. You may need to manually clean the data at location 's3://athena-cau-ndjson/aws-athena-query-results/tables/e9fe05e0----------------------' before retrying. Athena will not delete data in your account.
This query ran against the "default" database, unless qualified by the query. Please post the error message on our forum or contact customer support with Query Id: e9fe05e0-0631-49bb-86a7-1bffbfd7b0c9.

尝试按照错误中的建议清洁文件夹。但它不起作用。

还有其他建议吗?

0 个答案:

没有答案