如何让 AWS Feature Store 功能组进入 ACTIVE 状态?

How to get an AWS Feature Store feature group into the ACTIVE state?

我正在尝试使用以下方法将一些行提取到 AWS 上的特征存储中:

feature_group.ingest(data_frame=df, max_workers=8, wait=True)

但我收到以下错误:

Failed to ingest row 1: An error occurred (ValidationError) when calling the PutRecord operation: Validation Error: FeatureGroup [feature-group] is not in ACTIVE state.

事实证明,功能组在创建后的状态为 Created,但在您提取任何行之前,您只需等待它的状态为 Active:

while status != 'Created':
        try:
            status = feature_group.describe()['OfflineStoreStatus']['Status']
        except:
            pass
        print('Offline store status: {}'.format(status))    
        sleep(15)