1

我正在点击此链接为 athena 设置我的成本和使用情况报告。

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

根据指南,此时,在 Lambda 控制台中,我应该创建了这 5 个函数。 aws-cost-n-usage-S3-lambda-fn-B aws-cost-n-usage-main-lambda-fn-A aws-cost-n-usage-S3-lambda-fn-B-2 aws-cost -n-usage-Athena-lambda-fn-C aws-cost-n-usage-Athena-lambda-fn-C-2

但我缺少 fn-c 和 fn-c-2

检查我的 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.

尝试按照错误中的建议清理文件夹。但它不工作。

还有其他建议吗?

4

0 回答 0