File tree Expand file tree Collapse file tree
data-prepper-core/src/main/java/org/opensearch/dataprepper/core
data-prepper-plugins/test-plugin/src/main/java/org/opensearch/dataprepper/plugins/test Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ #
2+ # Copyright OpenSearch Contributors
3+ # SPDX-License-Identifier: Apache-2.0
4+ #
5+ # The OpenSearch Contributors require contributions made to
6+ # this file be licensed under the Apache-2.0 license or a
7+ # compatible open source license.
8+ #
9+
10+ version : ' 3.8'
11+
12+ services :
13+ data-prepper :
14+ image : opensearchproject/data-prepper:latest
15+ ports :
16+ - " 4900:4900"
17+ volumes :
18+ - ./pipelines.yaml:/usr/share/data-prepper/pipelines/pipelines.yaml
Original file line number Diff line number Diff line change 1+ # Development environment configuration
2+ environment =development
3+ debug.enabled =true
4+ log.level =DEBUG
5+ data-prepper.workers =2
Original file line number Diff line number Diff line change 1+ package org .opensearch .dataprepper .core ;
2+
3+ /**
4+ * This file is missing the license header completely.
5+ */
6+ public class NewFeature {
7+
8+ public void doSomething () {
9+ System .out .println ("This file has no license header!" );
10+ }
11+ }
Original file line number Diff line number Diff line change 1+ /*
2+ * Copyright OpenSearch Contributors
3+ * SPDX-License-Identifier: Apache-2.0
4+ *
5+ * The OpenSearch Contributors require contributions made to
6+ * this file be licensed under the Apache-2.0 license or a
7+ * compatible open source license.
8+ */
9+
10+ package org .opensearch .dataprepper .plugins .test ;
11+
12+ import org .opensearch .dataprepper .model .processor .Processor ;
13+
14+ public class TestProcessor implements Processor {
15+ // This is a good Java file with complete license header
16+ }
Original file line number Diff line number Diff line change 1+ apiVersion : v1
2+ kind : ConfigMap
3+ metadata :
4+ name : data-prepper-config
5+ namespace : opensearch
6+ data :
7+ pipelines.yaml : |
8+ simple-pipeline:
9+ source:
10+ http:
11+ port: 2021
12+ sink:
13+ - stdout:
Original file line number Diff line number Diff line change 1+ #
2+ # Copyright OpenSearch Contributors
3+ # SPDX-License-Identifier: Apache-2.0
4+ #
5+ # The OpenSearch Contributors require contributions made to
6+ # this file be licensed under the Apache-2.0 license or a
7+ # compatible open source license.
8+ #
9+
10+ # Application configuration for trace analytics example
11+ server.port =8080
12+ logging.level.org.opensearch.dataprepper =DEBUG
13+ data-prepper.pipeline.workers =4
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ # Copyright OpenSearch Contributors
3+
4+ # This shell script has incomplete license header
5+ set -e
6+
7+ echo " Starting compilation..."
8+ ./gradlew clean build
9+
10+ echo " Compilation completed successfully!"
Original file line number Diff line number Diff line change 1+ #!/usr/bin/env python3
2+ #
3+ # Copyright OpenSearch Contributors
4+ # SPDX-License-Identifier: Apache-2.0
5+ #
6+ # The OpenSearch Contributors require contributions made to
7+ # this file be licensed under the Apache-2.0 license or a
8+ # compatible open source license.
9+ #
10+
11+ """
12+ Environment setup script for Data Prepper deployment.
13+ """
14+
15+ def setup_environment ():
16+ """Set up the deployment environment."""
17+ print ("Setting up environment..." )
18+
19+ if __name__ == "__main__" :
20+ setup_environment ()
Original file line number Diff line number Diff line change 1+ #!/usr/bin/env python3
2+ # Copyright OpenSearch Contributors
3+ # SPDX-License-Identifier: Apache-2.0
4+
5+ """
6+ This file has only the short header (missing the 3 additional lines).
7+ """
8+
9+ import sys
10+ import time
11+
12+ def monitor_system ():
13+ """Monitor system resources."""
14+ while True :
15+ print ("Monitoring..." )
16+ time .sleep (60 )
17+
18+ if __name__ == "__main__" :
19+ monitor_system ()
You can’t perform that action at this time.
0 commit comments