The Java class generated by protocol reports an error:
The generated template class reported an error. It was said on the Internet that the version was wrong, but I was sure that the version used was correct. Later, it was checked that a proto was introduced into the command_Path causes the generated template class to report an error
Error command:
protoc --proto_path=D:\000\hadoop-2.7.2-src\hadoop-yarn-project\hadoop-yarn\hadoop-yarn-api\src\main\proto\ --proto_path=D:\000\hadoop-2.7.2-src\hadoop-common-project\hadoop-common\src\main\proto\ --proto_path=.\ --java_out=.\ .\*.proto
Change to the following command:
protoc --proto_path=D:\000\hadoop-2.7.2-src\hadoop-common-project\hadoop-common\src\main\proto\ --proto_path=.\ --java_out=.\ .\*.proto
One less — proto_Path, and then the problem is solved
Read More:
- [Solved] Hbase-shell 2.x Error: Unhandled Java exception: java.lang.IncompatibleClassChangeError: Found class jline.Terminal…
- [Solved] hadoop Error: 9000 failed on connection exception java.net.ConnectException Denied to Access
- [Solved] Mapreducer Class Conversion error: java.lang.ClassCastException
- [Solved] JAVA connect HBase program is stuck and does not report an error
- The node requests the API address written by java to report an error error:getaddrinfo ENOTFOUND
- Java uses class array to report error Exception in thread “main” java.lang.NullPointerException solution
- [Solved] java.lang.IllegalAccessError: class org.springframework.data.redis.core.$ Proxy237 cannot access its superinterface org.springframework.data.redis.core.RedisConnectionUtils$RedisConnectionProxy
- java: java.lang.IllegalAccessError: class lombok.javac.apt.LombokProcessor (in unnamed module @0x590
- Idea create Maven project Error: [error] no longer supports source option 1.5. Please use version 1.6 or higher, and the idea reports an error: error: Java does not support the error of release version 5
- How to Solve Java Runtime (class file version 53.0)ERROR
- [Solved] Sqoop Error: ERROR tool.ImportTool: Import failed: java.io.IOException
- [Solved] Kafka in Windows error:java. nio. file. Filesystemexception: this file is in use by another program and cannot be accessed by the process
- [Solved] Initialization of anonymous inner class member variable causes java.lang.stackoverflowerror
- [Solved] hadoop-2.7.1 Error: Error Cannot find configuration directory etchadoop
- Java error: unable to find or load main class (package name in source file)
- Run hadoop fs -put Command Error: java.io.IOException: Got error, status message , ack with firstBadLink
- Java Running Error: Could not find or load main class
- JAVA: Random access file is always garbled
- Springboot integrates Redis annotation and access error: java.io.NotSerializableException: com.demo.entity.MemberEntity
- [Solved] Solr8 establishes the cluster node as active, but the query reports an error