baghelamit / video-stream-analytics Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
As I understand Kafka is used for storing messages of a few KBs. Are you trying to treat Kafka as Kinesis Stream?
Hi, I am encountering opencv error. Tried many other solutions but didn't work.
Here is the error when I run collector:
Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.6.0:java (default-cli) on project video-stream-collector: An exception occured while executing the Java class. no opencv-3.2.0 in java.library.path -> [Help 1]
Hi,
Trying to compile the StreamCollector and getting the the following error:
$ mvn clean package exec:java -Dexec.mainClass="com.iot.video.app.kafka.collector.VideoStreamCollector" -Dexec.cleanupDaemonThreads=false
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] video-stream-processor
[INFO] video-stream-collector
[INFO] Video Stream Analytics
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building video-stream-processor 1.0.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ video-stream-processor ---
[INFO] Deleting /home/kleysonr/git/x/video-stream-analytics/video-stream-processor/target
[INFO]
[INFO] --- maven-install-plugin:2.5.2:install-file (install-external) @ video-stream-processor ---
[INFO] pom.xml not found in opencv-320.jar
[INFO] Installing /home/kleysonr/git/x/video-stream-analytics/video-stream-processor/lib/opencv/opencv-320.jar to /home/kleysonr/.m2/repository/opencv/opencv/3.2.0/opencv-3.2.0.jar
[INFO] Installing /tmp/mvninstall3705405067332435574.pom to /home/kleysonr/.m2/repository/opencv/opencv/3.2.0/opencv-3.2.0.pom
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ video-stream-processor ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 2 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.6.1:compile (default-compile) @ video-stream-processor ---
[INFO] Changes detected - recompiling the module!
[WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent!
[INFO] Compiling 4 source files to /home/kleysonr/git/x/video-stream-analytics/video-stream-processor/target/classes
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ video-stream-processor ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory /home/kleysonr/git/x/video-stream-analytics/video-stream-processor/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.6.1:testCompile (default-testCompile) @ video-stream-processor ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.17:test (default-test) @ video-stream-processor ---
[INFO] No tests to run.
[INFO]
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ video-stream-processor ---
[INFO] Building jar: /home/kleysonr/git/x/video-stream-analytics/video-stream-processor/target/video-stream-processor-1.0.0.jar
[INFO]
[INFO] --- maven-shade-plugin:3.0.0:shade (default) @ video-stream-processor ---
[INFO] Including org.apache.spark:spark-core_2.11:jar:2.2.0 in the shaded jar.
[INFO] Including org.apache.avro:avro:jar:1.7.7 in the shaded jar.
[INFO] Including org.codehaus.jackson:jackson-core-asl:jar:1.9.13 in the shaded jar.
[INFO] Including org.codehaus.jackson:jackson-mapper-asl:jar:1.9.13 in the shaded jar.
[INFO] Including com.thoughtworks.paranamer:paranamer:jar:2.3 in the shaded jar.
[INFO] Including org.apache.commons:commons-compress:jar:1.4.1 in the shaded jar.
[INFO] Including org.tukaani:xz:jar:1.0 in the shaded jar.
[INFO] Including org.apache.avro:avro-mapred:jar:hadoop2:1.7.7 in the shaded jar.
[INFO] Including org.apache.avro:avro-ipc:jar:1.7.7 in the shaded jar.
[INFO] Including org.apache.avro:avro-ipc:jar:tests:1.7.7 in the shaded jar.
[INFO] Including com.twitter:chill_2.11:jar:0.8.0 in the shaded jar.
[INFO] Including com.esotericsoftware:kryo-shaded:jar:3.0.3 in the shaded jar.
[INFO] Including com.esotericsoftware:minlog:jar:1.3.0 in the shaded jar.
[INFO] Including org.objenesis:objenesis:jar:2.1 in the shaded jar.
[INFO] Including com.twitter:chill-java:jar:0.8.0 in the shaded jar.
[INFO] Including org.apache.xbean:xbean-asm5-shaded:jar:4.4 in the shaded jar.
[INFO] Including org.apache.hadoop:hadoop-client:jar:2.6.5 in the shaded jar.
[INFO] Including org.apache.hadoop:hadoop-common:jar:2.6.5 in the shaded jar.
[INFO] Including commons-cli:commons-cli:jar:1.2 in the shaded jar.
[INFO] Including xmlenc:xmlenc:jar:0.52 in the shaded jar.
[INFO] Including commons-httpclient:commons-httpclient:jar:3.1 in the shaded jar.
[INFO] Including commons-io:commons-io:jar:2.4 in the shaded jar.
[INFO] Including commons-collections:commons-collections:jar:3.2.2 in the shaded jar.
[INFO] Including commons-lang:commons-lang:jar:2.6 in the shaded jar.
[INFO] Including commons-configuration:commons-configuration:jar:1.6 in the shaded jar.
[INFO] Including commons-digester:commons-digester:jar:1.8 in the shaded jar.
[INFO] Including commons-beanutils:commons-beanutils:jar:1.7.0 in the shaded jar.
[INFO] Including commons-beanutils:commons-beanutils-core:jar:1.8.0 in the shaded jar.
[INFO] Including com.google.protobuf:protobuf-java:jar:2.5.0 in the shaded jar.
[INFO] Including com.google.code.gson:gson:jar:2.2.4 in the shaded jar.
[INFO] Including org.apache.hadoop:hadoop-auth:jar:2.6.5 in the shaded jar.
[INFO] Including org.apache.directory.server:apacheds-kerberos-codec:jar:2.0.0-M15 in the shaded jar.
[INFO] Including org.apache.directory.server:apacheds-i18n:jar:2.0.0-M15 in the shaded jar.
[INFO] Including org.apache.directory.api:api-asn1-api:jar:1.0.0-M20 in the shaded jar.
[INFO] Including org.apache.directory.api:api-util:jar:1.0.0-M20 in the shaded jar.
[INFO] Including org.apache.curator:curator-client:jar:2.6.0 in the shaded jar.
[INFO] Including org.htrace:htrace-core:jar:3.0.4 in the shaded jar.
[INFO] Including org.apache.hadoop:hadoop-hdfs:jar:2.6.5 in the shaded jar.
[INFO] Including org.mortbay.jetty:jetty-util:jar:6.1.26 in the shaded jar.
[INFO] Including xerces:xercesImpl:jar:2.9.1 in the shaded jar.
[INFO] Including xml-apis:xml-apis:jar:1.3.04 in the shaded jar.
[INFO] Including org.apache.hadoop:hadoop-mapreduce-client-app:jar:2.6.5 in the shaded jar.
[INFO] Including org.apache.hadoop:hadoop-mapreduce-client-common:jar:2.6.5 in the shaded jar.
[INFO] Including org.apache.hadoop:hadoop-yarn-client:jar:2.6.5 in the shaded jar.
[INFO] Including org.apache.hadoop:hadoop-yarn-server-common:jar:2.6.5 in the shaded jar.
[INFO] Including org.apache.hadoop:hadoop-mapreduce-client-shuffle:jar:2.6.5 in the shaded jar.
[INFO] Including org.apache.hadoop:hadoop-yarn-api:jar:2.6.5 in the shaded jar.
[INFO] Including org.apache.hadoop:hadoop-mapreduce-client-core:jar:2.6.5 in the shaded jar.
[INFO] Including org.apache.hadoop:hadoop-yarn-common:jar:2.6.5 in the shaded jar.
[INFO] Including javax.xml.bind:jaxb-api:jar:2.2.2 in the shaded jar.
[INFO] Including javax.xml.stream:stax-api:jar:1.0-2 in the shaded jar.
[INFO] Including org.codehaus.jackson:jackson-jaxrs:jar:1.9.13 in the shaded jar.
[INFO] Including org.codehaus.jackson:jackson-xc:jar:1.9.13 in the shaded jar.
[INFO] Including org.apache.hadoop:hadoop-mapreduce-client-jobclient:jar:2.6.5 in the shaded jar.
[INFO] Including org.apache.hadoop:hadoop-annotations:jar:2.6.5 in the shaded jar.
[INFO] Including org.apache.spark:spark-launcher_2.11:jar:2.2.0 in the shaded jar.
[INFO] Including org.apache.spark:spark-network-common_2.11:jar:2.2.0 in the shaded jar.
[INFO] Including org.fusesource.leveldbjni:leveldbjni-all:jar:1.8 in the shaded jar.
[INFO] Including com.fasterxml.jackson.core:jackson-annotations:jar:2.6.5 in the shaded jar.
[INFO] Including org.apache.spark:spark-network-shuffle_2.11:jar:2.2.0 in the shaded jar.
[INFO] Including org.apache.spark:spark-unsafe_2.11:jar:2.2.0 in the shaded jar.
[INFO] Including net.java.dev.jets3t:jets3t:jar:0.9.3 in the shaded jar.
[INFO] Including org.apache.httpcomponents:httpcore:jar:4.3.3 in the shaded jar.
[INFO] Including org.apache.httpcomponents:httpclient:jar:4.3.6 in the shaded jar.
[INFO] Including commons-codec:commons-codec:jar:1.8 in the shaded jar.
[INFO] Including javax.activation:activation:jar:1.1.1 in the shaded jar.
[INFO] Including mx4j:mx4j:jar:3.0.2 in the shaded jar.
[INFO] Including javax.mail:mail:jar:1.4.7 in the shaded jar.
[INFO] Including org.bouncycastle:bcprov-jdk15on:jar:1.51 in the shaded jar.
[INFO] Including com.jamesmurty.utils:java-xmlbuilder:jar:1.0 in the shaded jar.
[INFO] Including net.iharder:base64:jar:2.3.8 in the shaded jar.
[INFO] Including org.apache.curator:curator-recipes:jar:2.6.0 in the shaded jar.
[INFO] Including org.apache.curator:curator-framework:jar:2.6.0 in the shaded jar.
[INFO] Including org.apache.zookeeper:zookeeper:jar:3.4.6 in the shaded jar.
[INFO] Including com.google.guava:guava:jar:16.0.1 in the shaded jar.
[INFO] Including javax.servlet:javax.servlet-api:jar:3.1.0 in the shaded jar.
[INFO] Including org.apache.commons:commons-lang3:jar:3.5 in the shaded jar.
[INFO] Including org.apache.commons:commons-math3:jar:3.4.1 in the shaded jar.
[INFO] Including com.google.code.findbugs:jsr305:jar:1.3.9 in the shaded jar.
[INFO] Including org.slf4j:slf4j-api:jar:1.7.16 in the shaded jar.
[INFO] Including org.slf4j:jul-to-slf4j:jar:1.7.16 in the shaded jar.
[INFO] Including org.slf4j:jcl-over-slf4j:jar:1.7.16 in the shaded jar.
[INFO] Including org.slf4j:slf4j-log4j12:jar:1.7.16 in the shaded jar.
[INFO] Including com.ning:compress-lzf:jar:1.0.3 in the shaded jar.
[INFO] Including org.xerial.snappy:snappy-java:jar:1.1.2.6 in the shaded jar.
[INFO] Including net.jpountz.lz4:lz4:jar:1.3.0 in the shaded jar.
[INFO] Including org.roaringbitmap:RoaringBitmap:jar:0.5.11 in the shaded jar.
[INFO] Including commons-net:commons-net:jar:2.2 in the shaded jar.
[INFO] Including org.scala-lang:scala-library:jar:2.11.8 in the shaded jar.
[INFO] Including org.json4s:json4s-jackson_2.11:jar:3.2.11 in the shaded jar.
[INFO] Including org.json4s:json4s-core_2.11:jar:3.2.11 in the shaded jar.
[INFO] Including org.json4s:json4s-ast_2.11:jar:3.2.11 in the shaded jar.
[INFO] Including org.scala-lang:scalap:jar:2.11.0 in the shaded jar.
[INFO] Including org.scala-lang:scala-compiler:jar:2.11.0 in the shaded jar.
[INFO] Including org.scala-lang.modules:scala-xml_2.11:jar:1.0.1 in the shaded jar.
[INFO] Including org.scala-lang.modules:scala-parser-combinators_2.11:jar:1.0.1 in the shaded jar.
[INFO] Including org.glassfish.jersey.core:jersey-client:jar:2.22.2 in the shaded jar.
[INFO] Including javax.ws.rs:javax.ws.rs-api:jar:2.0.1 in the shaded jar.
[INFO] Including org.glassfish.hk2:hk2-api:jar:2.4.0-b34 in the shaded jar.
[INFO] Including org.glassfish.hk2:hk2-utils:jar:2.4.0-b34 in the shaded jar.
[INFO] Including org.glassfish.hk2.external:aopalliance-repackaged:jar:2.4.0-b34 in the shaded jar.
[INFO] Including org.glassfish.hk2.external:javax.inject:jar:2.4.0-b34 in the shaded jar.
[INFO] Including org.glassfish.hk2:hk2-locator:jar:2.4.0-b34 in the shaded jar.
[INFO] Including org.javassist:javassist:jar:3.18.1-GA in the shaded jar.
[INFO] Including org.glassfish.jersey.core:jersey-common:jar:2.22.2 in the shaded jar.
[INFO] Including javax.annotation:javax.annotation-api:jar:1.2 in the shaded jar.
[INFO] Including org.glassfish.jersey.bundles.repackaged:jersey-guava:jar:2.22.2 in the shaded jar.
[INFO] Including org.glassfish.hk2:osgi-resource-locator:jar:1.0.1 in the shaded jar.
[INFO] Including org.glassfish.jersey.core:jersey-server:jar:2.22.2 in the shaded jar.
[INFO] Including org.glassfish.jersey.media:jersey-media-jaxb:jar:2.22.2 in the shaded jar.
[INFO] Including javax.validation:validation-api:jar:1.1.0.Final in the shaded jar.
[INFO] Including org.glassfish.jersey.containers:jersey-container-servlet:jar:2.22.2 in the shaded jar.
[INFO] Including org.glassfish.jersey.containers:jersey-container-servlet-core:jar:2.22.2 in the shaded jar.
[INFO] Including io.netty:netty-all:jar:4.0.43.Final in the shaded jar.
[INFO] Including io.netty:netty:jar:3.9.9.Final in the shaded jar.
[INFO] Including com.clearspring.analytics:stream:jar:2.7.0 in the shaded jar.
[INFO] Including io.dropwizard.metrics:metrics-core:jar:3.1.2 in the shaded jar.
[INFO] Including io.dropwizard.metrics:metrics-jvm:jar:3.1.2 in the shaded jar.
[INFO] Including io.dropwizard.metrics:metrics-json:jar:3.1.2 in the shaded jar.
[INFO] Including io.dropwizard.metrics:metrics-graphite:jar:3.1.2 in the shaded jar.
[INFO] Including com.fasterxml.jackson.core:jackson-databind:jar:2.6.5 in the shaded jar.
[INFO] Including com.fasterxml.jackson.core:jackson-core:jar:2.6.5 in the shaded jar.
[INFO] Including com.fasterxml.jackson.module:jackson-module-scala_2.11:jar:2.6.5 in the shaded jar.
[INFO] Including org.scala-lang:scala-reflect:jar:2.11.7 in the shaded jar.
[INFO] Including com.fasterxml.jackson.module:jackson-module-paranamer:jar:2.6.5 in the shaded jar.
[INFO] Including org.apache.ivy:ivy:jar:2.4.0 in the shaded jar.
[INFO] Including oro:oro:jar:2.0.8 in the shaded jar.
[INFO] Including net.razorvine:pyrolite:jar:4.13 in the shaded jar.
[INFO] Including net.sf.py4j:py4j:jar:0.10.4 in the shaded jar.
[INFO] Including org.apache.spark:spark-tags_2.11:jar:2.2.0 in the shaded jar.
[INFO] Including org.apache.commons:commons-crypto:jar:1.0.0 in the shaded jar.
[INFO] Including org.spark-project.spark:unused:jar:1.0.0 in the shaded jar.
[INFO] Including org.apache.spark:spark-streaming_2.11:jar:2.2.0 in the shaded jar.
[INFO] Including org.apache.spark:spark-sql_2.11:jar:2.2.0 in the shaded jar.
[INFO] Including com.univocity:univocity-parsers:jar:2.2.1 in the shaded jar.
[INFO] Including org.apache.spark:spark-sketch_2.11:jar:2.2.0 in the shaded jar.
[INFO] Including org.apache.spark:spark-catalyst_2.11:jar:2.2.0 in the shaded jar.
[INFO] Including org.codehaus.janino:janino:jar:3.0.0 in the shaded jar.
[INFO] Including org.codehaus.janino:commons-compiler:jar:3.0.0 in the shaded jar.
[INFO] Including org.antlr:antlr4-runtime:jar:4.5.3 in the shaded jar.
[INFO] Including org.apache.parquet:parquet-column:jar:1.8.2 in the shaded jar.
[INFO] Including org.apache.parquet:parquet-common:jar:1.8.2 in the shaded jar.
[INFO] Including org.apache.parquet:parquet-encoding:jar:1.8.2 in the shaded jar.
[INFO] Including org.apache.parquet:parquet-hadoop:jar:1.8.2 in the shaded jar.
[INFO] Including org.apache.parquet:parquet-format:jar:2.3.1 in the shaded jar.
[INFO] Including org.apache.parquet:parquet-jackson:jar:1.8.2 in the shaded jar.
[INFO] Including org.apache.spark:spark-sql-kafka-0-10_2.11:jar:2.2.0 in the shaded jar.
[INFO] Including org.apache.kafka:kafka-clients:jar:0.10.0.1 in the shaded jar.
[INFO] Including log4j:log4j:jar:1.2.17 in the shaded jar.
[INFO] Including opencv:opencv:jar:3.2.0 in the shaded jar.
[WARNING] hadoop-yarn-common-2.6.5.jar, hadoop-yarn-client-2.6.5.jar define 2 overlapping classes:
[WARNING] - org.apache.hadoop.yarn.client.api.package-info
[WARNING] - org.apache.hadoop.yarn.client.api.impl.package-info
[WARNING] hadoop-yarn-common-2.6.5.jar, hadoop-yarn-api-2.6.5.jar define 3 overlapping classes:
[WARNING] - org.apache.hadoop.yarn.util.package-info
[WARNING] - org.apache.hadoop.yarn.factories.package-info
[WARNING] - org.apache.hadoop.yarn.factory.providers.package-info
[WARNING] commons-beanutils-1.7.0.jar, commons-beanutils-core-1.8.0.jar define 82 overlapping classes:
[WARNING] - org.apache.commons.beanutils.ConvertUtilsBean
[WARNING] - org.apache.commons.beanutils.converters.SqlTimeConverter
[WARNING] - org.apache.commons.beanutils.Converter
[WARNING] - org.apache.commons.beanutils.converters.FloatArrayConverter
[WARNING] - org.apache.commons.beanutils.NestedNullException
[WARNING] - org.apache.commons.beanutils.ConvertingWrapDynaBean
[WARNING] - org.apache.commons.beanutils.converters.LongArrayConverter
[WARNING] - org.apache.commons.beanutils.converters.SqlDateConverter
[WARNING] - org.apache.commons.beanutils.converters.BooleanArrayConverter
[WARNING] - org.apache.commons.beanutils.converters.StringConverter
[WARNING] - 72 more...
[WARNING] spark-launcher_2.11-2.2.0.jar, spark-sql_2.11-2.2.0.jar, spark-network-shuffle_2.11-2.2.0.jar, spark-unsafe_2.11-2.2.0.jar, spark-sketch_2.11-2.2.0.jar, spark-sql-kafka-0-10_2.11-2.2.0.jar, spark-streaming_2.11-2.2.0.jar, spark-core_2.11-2.2.0.jar, spark-network-common_2.11-2.2.0.jar, spark-catalyst_2.11-2.2.0.jar, spark-tags_2.11-2.2.0.jar, unused-1.0.0.jar define 1 overlapping classes:
[WARNING] - org.apache.spark.unused.UnusedStubClass
[WARNING] commons-beanutils-1.7.0.jar, commons-beanutils-core-1.8.0.jar, commons-collections-3.2.2.jar define 10 overlapping classes:
[WARNING] - org.apache.commons.collections.FastHashMap$EntrySet
[WARNING] - org.apache.commons.collections.FastHashMap$KeySet
[WARNING] - org.apache.commons.collections.ArrayStack
[WARNING] - org.apache.commons.collections.FastHashMap$CollectionView$CollectionViewIterator
[WARNING] - org.apache.commons.collections.FastHashMap$Values
[WARNING] - org.apache.commons.collections.FastHashMap$CollectionView
[WARNING] - org.apache.commons.collections.FastHashMap$1
[WARNING] - org.apache.commons.collections.Buffer
[WARNING] - org.apache.commons.collections.FastHashMap
[WARNING] - org.apache.commons.collections.BufferUnderflowException
[WARNING] maven-shade-plugin has detected that some class files are
[WARNING] present in two or more JARs. When this happens, only one
[WARNING] single version of the class is copied to the uber jar.
[WARNING] Usually this is not harmful and you can skip these warnings,
[WARNING] otherwise try to manually exclude artifacts based on
[WARNING] mvn dependency:tree -Ddetail=true and the above output.
[WARNING] See http://maven.apache.org/plugins/maven-shade-plugin/
[INFO] Replacing original artifact with shaded artifact.
[INFO] Replacing /home/kleysonr/git/x/video-stream-analytics/video-stream-processor/target/video-stream-processor-1.0.0.jar with /home/kleysonr/git/x/video-stream-analytics/video-stream-processor/target/video-stream-processor-1.0.0-shaded.jar
[INFO] Dependency-reduced POM written at: /home/kleysonr/git/x/video-stream-analytics/video-stream-processor/dependency-reduced-pom.xml
[INFO]
[INFO] --- exec-maven-plugin:1.6.0:java (default-cli) @ video-stream-processor ---
[WARNING]
java.lang.ClassNotFoundException: com.iot.video.app.kafka.collector.VideoStreamCollector
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:270)
at java.lang.Thread.run(Thread.java:745)
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] video-stream-processor ............................. FAILURE [ 15.659 s]
[INFO] video-stream-collector ............................. SKIPPED
[INFO] Video Stream Analytics ............................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 16.012 s
[INFO] Finished at: 2017-12-23T18:40:05-02:00
[INFO] Final Memory: 61M/693M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.6.0:java (default-cli) on project video-stream-processor: An exception occured while executing the Java class. com.iot.video.app.kafka.collector.VideoStreamCollector -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
After:
Getting the following error:
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building video-stream-collector 1.0.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ video-stream-collector ---
[INFO] Deleting /home/kleysonr/git/x/video-stream-analytics/video-stream-collector/target
[INFO]
[INFO] --- maven-install-plugin:2.5.2:install-file (install-external) @ video-stream-collector ---
[INFO] pom.xml not found in opencv-320.jar
[INFO] Installing /home/kleysonr/git/x/video-stream-analytics/video-stream-collector/lib/opencv/opencv-320.jar to /home/kleysonr/.m2/repository/opencv/opencv/3.2.0/opencv-3.2.0.jar
[INFO] Installing /tmp/mvninstall717465399647818756.pom to /home/kleysonr/.m2/repository/opencv/opencv/3.2.0/opencv-3.2.0.pom
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ video-stream-collector ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 2 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.6.1:compile (default-compile) @ video-stream-collector ---
[INFO] Changes detected - recompiling the module!
[WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent!
[INFO] Compiling 3 source files to /home/kleysonr/git/x/video-stream-analytics/video-stream-collector/target/classes
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ video-stream-collector ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory /home/kleysonr/git/x/video-stream-analytics/video-stream-collector/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.6.1:testCompile (default-testCompile) @ video-stream-collector ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.17:test (default-test) @ video-stream-collector ---
[INFO] No tests to run.
[INFO]
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ video-stream-collector ---
[INFO] Building jar: /home/kleysonr/git/x/video-stream-analytics/video-stream-collector/target/video-stream-collector-1.0.0.jar
[INFO]
[INFO] --- maven-shade-plugin:3.0.0:shade (default) @ video-stream-collector ---
[INFO] Including org.apache.kafka:kafka_2.11:jar:0.10.2.0 in the shaded jar.
[INFO] Including org.apache.kafka:kafka-clients:jar:0.10.2.0 in the shaded jar.
[INFO] Including net.jpountz.lz4:lz4:jar:1.3.0 in the shaded jar.
[INFO] Including org.xerial.snappy:snappy-java:jar:1.1.2.6 in the shaded jar.
[INFO] Including org.slf4j:slf4j-api:jar:1.7.21 in the shaded jar.
[INFO] Including net.sf.jopt-simple:jopt-simple:jar:5.0.3 in the shaded jar.
[INFO] Including com.yammer.metrics:metrics-core:jar:2.2.0 in the shaded jar.
[INFO] Including org.scala-lang:scala-library:jar:2.11.8 in the shaded jar.
[INFO] Including org.slf4j:slf4j-log4j12:jar:1.7.21 in the shaded jar.
[INFO] Including com.101tec:zkclient:jar:0.10 in the shaded jar.
[INFO] Including org.apache.zookeeper:zookeeper:jar:3.4.9 in the shaded jar.
[INFO] Including org.scala-lang.modules:scala-parser-combinators_2.11:jar:1.0.4 in the shaded jar.
[INFO] Including com.google.code.gson:gson:jar:2.8.0 in the shaded jar.
[INFO] Including commons-lang:commons-lang:jar:2.6 in the shaded jar.
[INFO] Including log4j:log4j:jar:1.2.17 in the shaded jar.
[INFO] Including opencv:opencv:jar:3.2.0 in the shaded jar.
[INFO] Replacing original artifact with shaded artifact.
[INFO] Replacing /home/kleysonr/git/x/video-stream-analytics/video-stream-collector/target/video-stream-collector-1.0.0.jar with /home/kleysonr/git/x/video-stream-analytics/video-stream-collector/target/video-stream-collector-1.0.0-shaded.jar
[INFO] Dependency-reduced POM written at: /home/kleysonr/git/x/video-stream-analytics/video-stream-collector/dependency-reduced-pom.xml
[INFO]
[INFO] --- exec-maven-plugin:1.6.0:java (default-cli) @ video-stream-collector ---
2017-12-24 08:20:15 INFO ProducerConfig:180 - ProducerConfig values:
acks = all
batch.size = 20971520
block.on.buffer.full = false
bootstrap.servers = [localhost:9092]
buffer.memory = 33554432
client.id =
compression.type = gzip
connections.max.idle.ms = 540000
interceptor.classes = null
key.serializer = class org.apache.kafka.common.serialization.StringSerializer
linger.ms = 5
max.block.ms = 60000
max.in.flight.requests.per.connection = 5
max.request.size = 2097152
metadata.fetch.timeout.ms = 60000
metadata.max.age.ms = 300000
metric.reporters = []
metrics.num.samples = 2
metrics.sample.window.ms = 30000
partitioner.class = class org.apache.kafka.clients.producer.internals.DefaultPartitioner
receive.buffer.bytes = 32768
reconnect.backoff.ms = 50
request.timeout.ms = 30000
retries = 1
retry.backoff.ms = 100
sasl.jaas.config = null
sasl.kerberos.kinit.cmd = /usr/bin/kinit
sasl.kerberos.min.time.before.relogin = 60000
sasl.kerberos.service.name = null
sasl.kerberos.ticket.renew.jitter = 0.05
sasl.kerberos.ticket.renew.window.factor = 0.8
sasl.mechanism = GSSAPI
security.protocol = PLAINTEXT
send.buffer.bytes = 131072
ssl.cipher.suites = null
ssl.enabled.protocols = [TLSv1.2, TLSv1.1, TLSv1]
ssl.endpoint.identification.algorithm = null
ssl.key.password = null
ssl.keymanager.algorithm = SunX509
ssl.keystore.location = null
ssl.keystore.password = null
ssl.keystore.type = JKS
ssl.protocol = TLS
ssl.provider = null
ssl.secure.random.implementation = null
ssl.trustmanager.algorithm = PKIX
ssl.truststore.location = null
ssl.truststore.password = null
ssl.truststore.type = JKS
timeout.ms = 30000
value.serializer = class org.apache.kafka.common.serialization.StringSerializer
2017-12-24 08:20:15 INFO AppInfoParser:83 - Kafka version : 0.10.2.0
2017-12-24 08:20:15 INFO AppInfoParser:84 - Kafka commitId : 576d93a8dc0cf421
2017-12-24 08:20:15 INFO VideoStreamCollector:47 - Total urls to process 1
[WARNING]
java.lang.UnsatisfiedLinkError: no opencv_java320 in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1864)
at java.lang.Runtime.loadLibrary0(Runtime.java:870)
at java.lang.System.loadLibrary(System.java:1122)
at com.iot.video.app.kafka.collector.VideoEventGenerator.<clinit>(VideoEventGenerator.java:43)
at com.iot.video.app.kafka.collector.VideoStreamCollector.generateIoTEvent(VideoStreamCollector.java:49)
at com.iot.video.app.kafka.collector.VideoStreamCollector.main(VideoStreamCollector.java:38)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:282)
at java.lang.Thread.run(Thread.java:745)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5.366 s
[INFO] Finished at: 2017-12-24T08:20:15-02:00
[INFO] Final Memory: 27M/493M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.6.0:java (default-cli) on project video-stream-collector: An exception occured while executing the Java class. no opencv_java320 in java.library.path -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
Hi,
I tried with RTSP url, I am getting one frame per second but after some time i am getting below error
[rtsp @ 0000000023f918a0] RTP: PT=60: bad cseq 1a3c expected=0119 [rtsp @ 00000000295e9680] RTP: PT=60: bad cseq 71be expected=6248 [h264 @ 000000002d1b35c0] left block unavailable for requested intra mode [h264 @ 000000002d1b35c0] error while decoding MB 0 33, bytestream 1200 [rtsp @ 0000000021282b40] RTP: PT=60: bad cseq 0a59 expected=fa61 [rtsp @ 0000000023f918a0] RTP: PT=60: bad cseq 2b2b expected=1abf [rtsp @ 00000000226cf4e0] RTP: PT=60: bad cseq 52a8 expected=4239 [rtsp @ 00000000226cf4e0] RTP: PT=60: bad cseq 6242 expected=52ea [h264 @ 00000000241b0020] cabac decode of qscale diff failed at 74 33 [h264 @ 00000000241b0020] error while decoding MB 74 33, bytestream 88885 [h264 @ 000000002d1b1da0] cabac decode of qscale diff failed at 53 35 [h264 @ 000000002d1b1da0] error while decoding MB 53 35, bytestream 592 [rtsp @ 00000000213098e0] RTP: PT=60: bad cseq 698a expected=37ac [h264 @ 000000002d1b3f60] left block unavailable for requested intra4x4 mode -1 [h264 @ 000000002d1b3f60] error while decoding MB 0 63, bytestream 107233 [h264 @ 000000002673b180] left block unavailable for requested intra mode [h264 @ 000000002673b180] error while decoding MB 0 64, bytestream 74025 [rtsp @ 00000000295e9680] RTP: PT=60: bad cseq 9ccd expected=908f [h264 @ 000000002d1b35c0] left block unavailable for requested intra4x4 mode -1 [h264 @ 000000002d1b35c0] error while decoding MB 0 66, bytestream 42336 [rtsp @ 0000000021282b40] RTP: PT=60: bad cseq 1b67 expected=0b88 [rtsp @ 00000000226cf4e0] RTP: PT=60: bad cseq 78f3 expected=639c [h264 @ 00000000219ae420] left block unavailable for requested intra mode [h264 @ 00000000219ae420] error while decoding MB 0 52, bytestream 11096 [rtsp @ 0000000021282b40] RTP: PT=60: bad cseq 2991 expected=1c9b [rtsp @ 0000000023f918a0] RTP: PT=60: bad cseq 4696 expected=38e8 [h264 @ 0000000026738fc0] left block unavailable for requested intra4x4 mode -1 [h264 @ 0000000026738fc0] error while decoding MB 0 65, bytestream 59030 [h264 @ 0000000026738b00] left block unavailable for requested intra mode [h264 @ 0000000026738b00] error while decoding MB 0 52, bytestream 110509 [rtsp @ 0000000023f918a0] RTP: PT=60: bad cseq 5f66 expected=5096 [h264 @ 000000002673b180] left block unavailable for requested intra4x4 mode -1 [h264 @ 000000002673b180] error while decoding MB 0 63, bytestrea
after getting error java code also stopped how to automatically read the stream again
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.