# 数据导入

易观方舟除了支持通过各端SDK将用户行为数据和用户属性数据上报到方舟平台中，还提供了不同的方案将数据导入到方舟平台，以便更全面的进行用户行为分析：

1、[JAVA工具包](/integration/import/tool.md)：独立的JAVA工具包，安装JDK8后，可直接运行JAR包，将用户行为或者用户属性的数据导入到用户行为表（Event）或者用户属性表（Profile）中，导入的数据文件格式必须和方舟定义的标准数据格式一致。

2、[接口导入](/integration/import/restful-api.md)：通过接口可以将历史数据通过网络上报到易观方舟 Nginx 收数程序，这种方式适用于不方便登录方舟服务器，并且数据量较少，开发人员熟悉方舟定义的数据模型和数据格式。

> **使用场景建议**：
>
> 1、实时数据或者需要增量上报的数据，可通过 SDK 进行数据接入。
>
> 2、历史数据，有方舟定义的标准数据格式文件，数据量较大时，可通过[JAVA工具包](/integration/import/tool.md)进行数据导入。
>
> 3、历史数据，数据存储在DB中可通过程序读取，数据流较少，且开发人员熟悉方舟定义的数据模型和数据格式，可通过 [接口导入](/integration/import/restful-api.md)进行数据导入。
>
> 4、历史数据，数据存储在DB中可通过程序读取，有JAVA程序，可通过 JAVA SDK 进行数据导入。

{% hint style="info" %}
除了通过SDK进行数据上报，其他的方案如JAVA工具包、数据导入接口等都需要严格遵循方舟定义的标准，请详细阅读[数据格式](/integration/prepare/data-type.md)。
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://arkdocs.analysys.cn/integration/import.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
