# Data prepper is giving errror: ERROR org.opensearch.dataprepper.plugin.PluginCreator - Encountered exception while instantiating the plugin OpenSearchSink

**URL:** <https://forum.opensearch.org/t/data-prepper-is-giving-errror-error-org-opensearch-dataprepper-plugin-plugincreator-encountered-exception-while-instantiating-the-plugin-opensearchsink/12308>\
**Category:** Data Prepper\
**Tags:** discuss, troubleshoot\
**Created:** [January 27, 2023, 2:51pm UTC](https://forum.opensearch.org/t/data-prepper-is-giving-errror-error-org-opensearch-dataprepper-plugin-plugincreator-encountered-exception-while-instantiating-the-plugin-opensearchsink/12308 "2023-01-27T14:51:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![divnoorsingh](https://avatars.discourse-cdn.com/v4/letter/d/48db29/32.png) [@divnoorsingh](https://forum.opensearch.org/u/divnoorsingh)\
**Post date:** [January 27, 2023, 2:51pm UTC](https://forum.opensearch.org/t/data-prepper-is-giving-errror-error-org-opensearch-dataprepper-plugin-plugincreator-encountered-exception-while-instantiating-the-plugin-opensearchsink/12308/1 "2023-01-27T14:51:39Z")

</div>

Hey

I am setting up data-prepper server on my ec2 instance. I’ve created opensearch cluster in aws managed os service. My docker run command for data prepper is producing error related to missing opensearchsink plugin. Do i need to install opensearch separately on my ec2 machine?

Logs are below:

 ![image](https://us1.discourse-cdn.com/flex019/uploads/mauve_hedgehog/original/2X/1/1c90f844dc90e2fd7932c70d4e46c74246f1354d.png)

my pipelines.yaml is:

```auto
entry-pipeline:
  delay: "100"
  source:
    otel_trace_source:
      ssl: false

  sink:
    - pipeline:
        name: "raw-pipeline"

raw-pipeline:
  source:
    pipeline:
      name: "entry-pipeline"
  processor:
    - otel_trace_raw:
    - otel_trace_group:
        hosts: ["https://xxxxxxxxxxxxxh-1.es.amazonaws.com:443"]
        username: "admin"
        password: "admin"
 
  sink:
    - opensearch:
        hosts: ["https://xxxxxxxxxxxxxh-1.es.amazonaws.com:443"]
        aws_sigv4: false
        username: "admin"
        password: "admin"
        trace_analytics_raw: true

```

Let me know where’s the issue.

---

<div class="post-metadata">

**Author:** ![kris](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/kris/32/2208_2.png) [@kris](https://forum.opensearch.org/u/kris)\
**Post date:** [February 24, 2023, 1:02am UTC](https://forum.opensearch.org/t/data-prepper-is-giving-errror-error-org-opensearch-dataprepper-plugin-plugincreator-encountered-exception-while-instantiating-the-plugin-opensearchsink/12308/2 "2023-02-24T01:02:44Z")

</div>

@dlv would you or someone on the team be able to look at this? thanks

---

<div class="post-metadata">

**Author:** ![divnoorsingh](https://avatars.discourse-cdn.com/v4/letter/d/48db29/32.png) [@divnoorsingh](https://forum.opensearch.org/u/divnoorsingh)\
**Post date:** [February 24, 2023, 3:58am UTC](https://forum.opensearch.org/t/data-prepper-is-giving-errror-error-org-opensearch-dataprepper-plugin-plugincreator-encountered-exception-while-instantiating-the-plugin-opensearchsink/12308/3 "2023-02-24T03:58:14Z")

</div>

@kris yes, this issue was resolved. Thank you!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex019/uploads/mauve_hedgehog/original/2X/3/33547ea01a5b12dcca2958411d3edd97ae2ea8c1.png) [@system](https://forum.opensearch.org/u/system)\
**Post date:** [April 25, 2023, 3:58am UTC](https://forum.opensearch.org/t/data-prepper-is-giving-errror-error-org-opensearch-dataprepper-plugin-plugincreator-encountered-exception-while-instantiating-the-plugin-opensearchsink/12308/4 "2023-04-25T03:58:38Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
