Paketproblem im HBase-Client-Modul in Apache HBase geteiltJava

Java-Forum
Anonymous
 Paketproblem im HBase-Client-Modul in Apache HBase geteilt

Post by Anonymous »

Ich arbeite am Erstellen von Modul-info.java-Datei für das HBase-Client-Modul im Apache-HBase-Projekt. Jetzt hat Hbase-Client eine direkte Abhängigkeit von HBase-Common-Modul.
Im Apache-HBase-Projekt werden die meisten Pakete über alle Module aufgeteilt. Dadurch ist ein Standard-Split-Paket-Problem, während vorhandener Code migriert. /> Ich habe eine Problemumgehung durchlaufen, aber das ist für wir, wenn wir zwei eingehende Abhängigkeiten haben, die dasselbe Paket enthält. In diesem Fall können wir ein modulares Glas erstellen, das jedoch nicht für HBase nützlich sein kann, da dies zu einem modularen Glas für HBase führt und das das Motiv dieses Projekts widerspricht.

Code: Select all

module org.apache.hadoop.hbase.client {
requires audience.annotations;
requires commons.crypto;
requires org.apache.commons.io;
requires org.apache.commons.lang3;
requires hadoop.common;
requires hbase.common;
requires com.google.gson;
requires com.google.common;
requires hbase.unsafe;
requires java.management;
requires java.security.sasl;
requires jcip.annotations;
requires org.jruby.jcodings;
requires org.jruby.joni;
requires metrics.core;
requires io.opentelemetry.api;
requires io.opentelemetry.context;
requires org.slf4j;
requires zookeeper;
requires hbase.shaded.protobuf;
//  requires hbase.protocol.shaded;
//  requires hbase.shaded.netty;
//  requires zookeeper.jute;

exports org.apache.hadoop.hbase;
}
< /code>
Ich erhalte diesen Fehler beim Kompilieren < /p>
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project hbase-client: Compilation failure: Compilation failure:
[ERROR] the unnamed module reads package org.apache.hadoop.hbase from both hbase.common and org.apache.hadoop.hbase.client
[ERROR] the unnamed module reads package org.apache.hadoop.hbase.exceptions from both hbase.common and org.apache.hadoop.hbase.client
[ERROR] the unnamed module reads package org.apache.hadoop.hbase.filter from both hbase.common and org.apache.hadoop.hbase.client
[ERROR] the unnamed module reads package org.apache.hadoop.hbase.security from both hbase.common and org.apache.hadoop.hbase.client
[ERROR] the unnamed module reads package org.apache.hadoop.hbase.util from both hbase.common and org.apache.hadoop.hbase.client
[ERROR] the unnamed module reads package org.apache.hadoop.hbase.zookeeper from both hbase.common and org.apache.hadoop.hbase.client
[ERROR] module org.slf4j reads package org.apache.hadoop.hbase from both org.apache.hadoop.hbase.client and hbase.common
[ERROR] module org.slf4j reads package org.apache.hadoop.hbase.zookeeper from both org.apache.hadoop.hbase.client and hbase.common
[ERROR] module org.slf4j reads package org.apache.hadoop.hbase.util from both org.apache.hadoop.hbase.client and hbase.common
[ERROR] module org.slf4j reads package org.apache.hadoop.hbase.security from both org.apache.hadoop.hbase.client and hbase.common
[ERROR] module org.slf4j reads package org.apache.hadoop.hbase.filter from both org.apache.hadoop.hbase.client and hbase.common
[ERROR] module org.slf4j reads package org.apache.hadoop.hbase.exceptions from both org.apache.hadoop.hbase.client and hbase.common
....
....
....
Es ist wie ein großes, unbenanntes Modul (HBase), das das gleiche Paket von hbase.client und hbase.Common liest.

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post