

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# 對 Neptune 匯出程序進行疑難排解
<a name="export-troubleshooting"></a>

Amazon Neptune 匯出程序會使用 [AWS Batch](https://docs.aws.amazon.com/batch/latest/userguide/) 佈建匯出 Neptune 資料所需的運算和儲存資源。匯出執行時，您可以使用 `logs` 欄位中的連結，存取匯出工作的 CloudWatch 日誌。

不過，執行匯出之 AWS Batch 任務的 CloudWatch 日誌只有在 AWS Batch 任務執行時才能使用。如果 Neptune 匯出報告匯出處於待定狀態，則不會有日誌連結，讓您可透過其存取 CloudWatch 日誌。如果匯出任務保持 `pending` 狀態超過幾分鐘，則佈建基礎 AWS Batch 資源時可能會出現問題。

當匯出工作離開待定狀態時，您可以檢查其狀態，如下所示：

**檢查 AWS Batch 任務的狀態**

1. 在 https：//[https://console.aws.amazon.com/batch/](https://console.aws.amazon.com/batch/) 開啟 AWS Batch 主控台。

1. 選取 neptune-export 工作佇列。

1. 尋找其名稱與 Neptune 匯出在您開始匯出時所傳回之 `jobName` 相符的工作。

![檢查狀態時的 AWS Batch 主控台螢幕擷取畫面](http://docs.aws.amazon.com/zh_tw/neptune/latest/userguide/images/batch-console-checking-export.png)


如果工作仍卡在 `RUNNABLE` 狀態，原因可能是網路或安全問題阻止容器執行個體加入基礎 Amazon Elastic Container Service (Amazon ECS) 叢集。請參閱[本支援文章](https://aws.amazon.com/premiumsupport/knowledge-center/batch-job-stuck-runnable-status/)中有關驗證運算環境的網路和安全設定一節。

您可以檢查的另一件事就是找出自動擴展方面的問題：

**檢查 AWS Batch 運算環境的 Amazon EC2 自動調整規模群組**

1. 前往 [https://console.aws.amazon.com/ec2/](https://console.aws.amazon.com/ec2/) 開啟 Amazon EC2 主控台。

1. 為 neptune-export 運算環境選取 **Auto Scaling** 群組。

1. 開啟**活動**索引標籤，並檢查活動歷史記錄是否有未成功的事件。

![檢查自動擴展問題時 Amazon EC2 主控台的螢幕擷取畫面](http://docs.aws.amazon.com/zh_tw/neptune/latest/userguide/images/ec2-console-checking-auto-scaling.png)


## Neptune 匯出常見錯誤
<a name="export-troubleshooting-errors"></a>

### `org.eclipse.rdf4j.query.QueryEvaluationException: Tag mismatch!`
<a name="export-troubleshooting-errors-tag-mismatch"></a>

如果 `export-rdf` 工作經常由於 `Tag mismatch!` `QueryEvaluationException` 失敗，則對於 Neptune 匯出所使用的大型、長時間執行的查詢，Neptune 執行個體大小過小。

您可以縱向擴展到較大的 Neptune 執行個體，或將工作設定為從大型複製的叢集匯出，來避免發生此錯誤，如下所示：

```
'{
  "command": "export-rdf",
  "outputS3Path": "s3://{{(your Amazon S3 bucket)}}/neptune-export",
  "params": {
    "endpoint": "{{(your Neptune endpoint DNS name)}}",
    "cloneCluster": True,
    "cloneClusterInstanceType" : "r5.24xlarge"
  }
}'
```