flink-1.15.0、flink-1.15.2本地编译时报错,总是卡在flink-runtime-web这个模块
[INFO] Building Flink : Runtime web 1.15.0 [93/206]
报错日志如下:
[INFO] Including com.google.cloud:google-cloud-core-http:jar:2.3.5 in the shaded jar.
[INFO] Including com.google.http-client:google-http-client-appengine:jar:1.41.0 in the shaded jar.
[INFO] Including com.google.api:gax-httpjson:jar:0.93.1 in the shaded jar.
[INFO] Including com.google.api:gax:jar:2.8.1 in the shaded jar.
[INFO] Including com.google.auth:google-auth-library-credentials:jar:1.3.0 in the shaded jar.
[INFO] Including com.google.auth:google-auth-library-oauth2-http:jar:1.3.0 in the shaded jar.
[INFO] Including com.google.api:api-common:jar:2.1.2 in the shaded jar.
[INFO] Including io.opencensus:opencensus-api:jar:0.28.0 in the shaded jar.
[INFO] Including io.grpc:grpc-context:jar:1.43.2 in the shaded jar.
[INFO] Including com.google.api.grpc:proto-google-iam-v1:jar:1.2.0 in the shaded jar.
[INFO] Including com.google.protobuf:protobuf-java:jar:3.19.2 in the shaded jar.
[INFO] Including com.google.protobuf:protobuf-java-util:jar:3.19.2 in the shaded jar.
[INFO] Including org.threeten:threetenbp:jar:1.5.2 in the shaded jar.
[INFO] Including com.fasterxml.jackson.core:jackson-core:jar:2.13.2 in the shaded jar.
[INFO] Including com.google.cloud.bigdataoss:gcs-connector:jar:hadoop3-2.2.4 in the shaded jar.
[INFO] Including com.google.api-client:google-api-client-jackson2:jar:1.32.2 in the shaded jar.
[INFO] Including com.google.cloud.bigdataoss:util:jar:2.2.4 in the shaded jar.
[INFO] Including com.google.apis:google-api-services-iamcredentials:jar:v1-rev20210326-1.32.1 in the shaded jar.
[INFO] Including org.apache.httpcomponents:httpclient:jar:4.5.13 in the shaded jar.
[INFO] Including org.apache.httpcomponents:httpcore:jar:4.4.14 in the shaded jar.
[INFO] Including commons-codec:commons-codec:jar:1.15 in the shaded jar.
[INFO] Including com.google.cloud.bigdataoss:util-hadoop:jar:hadoop3-2.2.4 in the shaded jar.
[INFO] Including com.google.cloud.bigdataoss:gcsio:jar:2.2.4 in the shaded jar.
[INFO] Including io.grpc:grpc-api:jar:1.43.2 in the shaded jar.
[INFO] Including io.grpc:grpc-alts:jar:1.43.2 in the shaded jar.
[INFO] Including io.grpc:grpc-auth:jar:1.43.2 in the shaded jar.
[INFO] Including io.grpc:grpc-grpclb:jar:1.43.2 in the shaded jar.
[INFO] Including org.conscrypt:conscrypt-openjdk-uber:jar:2.5.1 in the shaded jar.
[INFO] Including io.grpc:grpc-core:jar:1.43.2 in the shaded jar.
[INFO] Including com.google.android:annotations:jar:4.1.1.4 in the shaded jar.
[INFO] Including io.perfmark:perfmark-api:jar:0.23.0 in the shaded jar.
[INFO] Including io.grpc:grpc-netty-shaded:jar:1.43.2 in the shaded jar.
[INFO] Including io.grpc:grpc-protobuf:jar:1.43.2 in the shaded jar.
[INFO] Including io.grpc:grpc-protobuf-lite:jar:1.43.2 in the shaded jar.
[INFO] Including com.google.api.grpc:grpc-google-cloud-storage-v2:jar:2.0.1-alpha in the shaded jar.
[INFO] Including com.google.api.grpc:proto-google-cloud-storage-v2:jar:2.0.1-alpha in the shaded jar.
[INFO] Including io.grpc:grpc-stub:jar:1.43.2 in the shaded jar.
[INFO] Including com.google.flogger:flogger:jar:0.7.1 in the shaded jar.
[INFO] Including com.google.flogger:google-extensions:jar:0.7.1 in the shaded jar.
[INFO] Including com.google.flogger:flogger-system-backend:jar:0.7.1 in the shaded jar.
[INFO] Including org.apache.flink:flink-shaded-force-shading:jar:15.0 in the shaded jar.
[INFO] No artifact matching filter io.netty:netty
[WARNING] Discovered module-info.class. Shading will break its strong encapsulation.
[WARNING] Discovered module-info.class. Shading will break its strong encapsulation.
[WARNING] flink-fs-hadoop-shaded-1.15.0.jar, commons-configuration2-2.1.1.jar define 369 overlapping classes:
[WARNING] - org.apache.commons.configuration2.builder.combined.FileExtensionConfigurationBuilderProvider
[WARNING] - org.apache.commons.configuration2.ConfigurationUtils$1
[WARNING] - org.apache.commons.configuration2.io.FileOptionsProvider
[WARNING] - org.apache.commons.configuration2.convert.DefaultConversionHandler$1
[WARNING] - org.apache.commons.configuration2.io.VFSFileSystem$VFSURLStreamHandler
[WARNING] - org.apache.commons.configuration2.DynamicCombinedConfiguration
[WARNING] - org.apache.commons.configuration2.sync.LockMode
[WARNING] - org.apache.commons.configuration2.reloading.PeriodicReloadingTrigger
[WARNING] - org.apache.commons.configuration2.interpol.DummyLookup
[WARNING] - org.apache.commons.configuration2.io.CombinedLocationStrategy
[WARNING] - 359 more...
[WARNING] commons-collections-3.2.2.jar, flink-fs-hadoop-shaded-1.15.0.jar define 460 overlapping classes:
[WARNING] - org.apache.commons.collections.map.AbstractLinkedMap$LinkMapIterator
[WARNING] - org.apache.commons.collections.bidimap.TreeBidiMap$Node
[WARNING] - org.apache.commons.collections.comparators.TransformingComparator
[WARNING] - org.apache.commons.collections.iterators.AbstractListIteratorDecorator
[WARNING] - org.apache.commons.collections.bag.AbstractMapBag$BagIterator
[WARNING] - org.apache.commons.collections.map.AbstractReferenceMap$ReferenceKeySetIterator
[WARNING] - org.apache.commons.collections.DoubleOrderedMap$3$1
[WARNING] - org.apache.commons.collections.StaticBucketMap
[WARNING] - org.apache.commons.collections.comparators.ComparatorChain
[WARNING] - org.apache.commons.collections.ReferenceMap$1
[WARNING] - 450 more...
[WARNING] flink-fs-hadoop-shaded-1.15.0.jar, javax.activation-api-1.2.0.jar define 31 overlapping classes:
[WARNING] - javax.activation.CommandInfo$Beans$1
[WARNING] - javax.activation.ObjectDataContentHandler
[WARNING] - javax.activation.DataContentHandlerFactory
[WARNING] - javax.activation.DataContentHandler
[WARNING] - javax.activation.CommandObject
[WARNING] - javax.activation.SecuritySupport$2
[WARNING] - javax.activation.FileTypeMap
[WARNING] - javax.activation.CommandInfo
[WARNING] - javax.activation.MailcapCommandMap
[WARNING] - javax.activation.DataHandler$1
[WARNING] - 21 more...
[WARNING] jackson-databind-2.13.2.2.jar, jackson-core-2.13.2.jar, flink-fs-hadoop-shaded-1.15.0.jar define 1 overlapping classes:
[WARNING] - META-INF.versions.9.module-info
[WARNING] flink-fs-hadoop-shaded-1.15.0.jar, commons-beanutils-1.9.4.jar define 137 overlapping classes:
[WARNING] - org.apache.commons.beanutils.ConvertUtilsBean
[WARNING] - org.apache.commons.beanutils.converters.SqlTimeConverter
[WARNING] - org.apache.commons.beanutils.BaseDynaBeanMapDecorator$MapEntry
[WARNING] - org.apache.commons.beanutils.converters.FloatArrayConverter
[WARNING] - org.apache.commons.beanutils.BeanMap$1
[WARNING] - org.apache.commons.beanutils.BeanMap$4
[WARNING] - org.apache.commons.beanutils.converters.LongArrayConverter
[WARNING] - org.apache.commons.beanutils.converters.BooleanArrayConverter
[WARNING] - org.apache.commons.beanutils.converters.StringConverter
[WARNING] - org.apache.commons.beanutils.BeanMap$12
[WARNING] - 127 more...
[WARNING] guava-27.0-jre.jar, flink-fs-hadoop-shaded-1.15.0.jar define 1955 overlapping classes:
[WARNING] - com.google.common.collect.CompactHashMap$Itr
[WARNING] - com.google.common.collect.ImmutableMapValues$1
[WARNING] - com.google.common.io.LineProcessor
[WARNING] - com.google.common.util.concurrent.AbstractService$5
[WARNING] - com.google.common.io.BaseEncoding$StandardBaseEncoding$2
[WARNING] - com.google.common.io.ByteProcessor
[WARNING] - com.google.common.math.package-info
[WARNING] - com.google.common.util.concurrent.SimpleTimeLimiter
[WARNING] - com.google.common.cache.AbstractCache$StatsCounter
[WARNING] - com.google.common.util.concurrent.CycleDetectingLockFactory$Policies
[WARNING] - 1945 more...
[WARNING] commons-lang3-3.3.2.jar, flink-fs-hadoop-shaded-1.15.0.jar define 217 overlapping classes:
[WARNING] - org.apache.commons.lang3.time.StopWatch$State$1
[WARNING] - org.apache.commons.lang3.SerializationUtils
[WARNING] - org.apache.commons.lang3.time.FastDatePrinter$TwentyFourHourField
[WARNING] - org.apache.commons.lang3.LocaleUtils
[WARNING] - org.apache.commons.lang3.concurrent.ConcurrentException
[WARNING] - org.apache.commons.lang3.CharRange
[WARNING] - org.apache.commons.lang3.builder.IDKey
[WARNING] - org.apache.commons.lang3.reflect.TypeUtils
[WARNING] - org.apache.commons.lang3.ArrayUtils
[WARNING] - org.apache.commons.lang3.text.FormattableUtils
[WARNING] - 207 more...
[WARNING] commons-text-1.4.jar, flink-fs-hadoop-shaded-1.15.0.jar define 115 overlapping classes:
[WARNING] - org.apache.commons.text.diff.InsertCommand
[WARNING] - org.apache.commons.text.StrMatcher$TrimMatcher
[WARNING] - org.apache.commons.text.diff.KeepCommand
[WARNING] - org.apache.commons.text.similarity.LevenshteinResults
[WARNING] - org.apache.commons.text.translate.JavaUnicodeEscaper
[WARNING] - org.apache.commons.text.StrBuilder$StrBuilderTokenizer
[WARNING] - org.apache.commons.text.CharacterPredicates$4
[WARNING] - org.apache.commons.text.CharacterPredicates$1
[WARNING] - org.apache.commons.text.StrLookup$ResourceBundleLookup
[WARNING] - org.apache.commons.text.similarity.LevenshteinDetailedDistance
[WARNING] - 105 more...
[WARNING] flink-fs-hadoop-shaded-1.15.0.jar, commons-io-2.11.0.jar define 201 overlapping classes:
[WARNING] - org.apache.commons.io.FileCleaningTracker
[WARNING] - org.apache.commons.io.comparator.SizeFileComparator
[WARNING] - org.apache.commons.io.file.PathFilter
[WARNING] - org.apache.commons.io.output.BrokenWriter
[WARNING] - org.apache.commons.io.ByteOrderParser
[WARNING] - org.apache.commons.io.filefilter.EmptyFileFilter
[WARNING] - org.apache.commons.io.monitor.FileEntry
[WARNING] - org.apache.commons.io.input.TailerListener
[WARNING] - org.apache.commons.io.StreamIterator
[WARNING] - org.apache.commons.io.IOExceptionWithCause
[WARNING] - 191 more...
[WARNING] hadoop-common-3.2.2.jar, flink-fs-hadoop-shaded-1.15.0.jar define 2322 overlapping classes:
[WARNING] - org.apache.hadoop.io.compress.DecompressorStream
[WARNING] - org.apache.hadoop.crypto.key.kms.LoadBalancingKMSClientProvider$14
[WARNING] - org.apache.hadoop.util.HeapSort
[WARNING] - org.apache.hadoop.ha.protocolPB.HAServiceProtocolClientSideTranslatorPB$1
[WARNING] - org.apache.hadoop.fs.crypto.CryptoFSDataInputStream
[WARNING] - org.apache.hadoop.util.ShutdownHookManager$2
[WARNING] - org.apache.hadoop.metrics2.MetricsSystem$Callback
[WARNING] - org.apache.hadoop.io.compress.DirectDecompressionCodec
[WARNING] - org.apache.hadoop.tracing.SpanReceiverInfo
[WARNING] - org.apache.hadoop.metrics2.impl.MetricsBuffer$Entry
[WARNING] - 2312 more...
[WARNING] flink-fs-hadoop-shaded-1.15.0.jar, j2objc-annotations-1.1.jar define 12 overlapping classes:
[WARNING] - com.google.j2objc.annotations.Property
[WARNING] - com.google.j2objc.annotations.RetainedWith
[WARNING] - com.google.j2objc.annotations.RetainedLocalRef
[WARNING] - com.google.j2objc.annotations.J2ObjCIncompatible
[WARNING] - com.google.j2objc.annotations.AutoreleasePool
[WARNING] - com.google.j2objc.annotations.LoopTranslation$LoopStyle
[WARNING] - com.google.j2objc.annotations.ReflectionSupport$Level
[WARNING] - com.google.j2objc.annotations.ReflectionSupport
[WARNING] - com.google.j2objc.annotations.Weak
[WARNING] - com.google.j2objc.annotations.WeakOuter
[WARNING] - 2 more...
[WARNING] error_prone_annotations-2.2.0.jar, flink-fs-hadoop-shaded-1.15.0.jar define 22 overlapping classes:
[WARNING] - com.google.errorprone.annotations.Var
[WARNING] - com.google.errorprone.annotations.NoAllocation
[WARNING] - com.google.errorprone.annotations.IncompatibleModifiers
[WARNING] - com.google.errorprone.annotations.CompatibleWith
[WARNING] - com.google.errorprone.annotations.concurrent.LockMethod
[WARNING] - com.google.errorprone.annotations.FormatString
[WARNING] - com.google.errorprone.annotations.DoNotCall
[WARNING] - com.google.errorprone.annotations.Immutable
[WARNING] - com.google.errorprone.annotations.RestrictedApi
[WARNING] - com.google.errorprone.annotations.CompileTimeConstant
[WARNING] - 12 more...
[WARNING] flink-fs-hadoop-shaded-1.15.0.jar, commons-logging-1.1.3.jar define 28 overlapping classes:
[WARNING] - org.apache.commons.logging.LogSource
[WARNING] - org.apache.commons.logging.impl.ServletContextCleaner
[WARNING] - org.apache.commons.logging.Log
[WARNING] - org.apache.commons.logging.LogFactory$3
[WARNING] - org.apache.commons.logging.impl.LogFactoryImpl$2
[WARNING] - org.apache.commons.logging.impl.LogKitLogger
[WARNING] - org.apache.commons.logging.LogConfigurationException
[WARNING] - org.apache.commons.logging.impl.Jdk14Logger
[WARNING] - org.apache.commons.logging.impl.WeakHashtable$Referenced
[WARNING] - org.apache.commons.logging.impl.WeakHashtable$WeakKey
[WARNING] - 18 more...
[WARNING] flink-fs-hadoop-shaded-1.15.0.jar, hadoop-auth-3.2.2.jar define 48 overlapping classes:
[WARNING] - org.apache.hadoop.security.authentication.server.PseudoAuthenticationHandler
[WARNING] - org.apache.hadoop.security.authentication.client.AuthenticatedURL
[WARNING] - org.apache.hadoop.security.authentication.util.KerberosUtil$DER
[WARNING] - org.apache.hadoop.security.authentication.client.AuthenticatedURL$Token
[WARNING] - org.apache.hadoop.security.authentication.client.Authenticator
[WARNING] - org.apache.hadoop.security.authentication.server.MultiSchemeAuthenticationHandler
[WARNING] - org.apache.hadoop.security.authentication.util.FileSignerSecretProvider
[WARNING] - org.apache.hadoop.security.authentication.util.KerberosName$NoMatchingRule
[WARNING] - org.apache.hadoop.security.authentication.util.KerberosName$Rule
[WARNING] - org.apache.hadoop.security.authentication.server.AuthenticationHandler
[WARNING] - 38 more...
[WARNING] hadoop-annotations-3.2.2.jar, flink-fs-hadoop-shaded-1.15.0.jar define 16 overlapping classes:
[WARNING] - org.apache.hadoop.classification.tools.RootDocProcessor$ExcludeHandler
[WARNING] - org.apache.hadoop.classification.InterfaceStability
[WARNING] - org.apache.hadoop.classification.InterfaceAudience$Private
[WARNING] - org.apache.hadoop.classification.InterfaceAudience$LimitedPrivate
[WARNING] - org.apache.hadoop.classification.tools.package-info
[WARNING] - org.apache.hadoop.classification.tools.ExcludePrivateAnnotationsStandardDoclet
[WARNING] - org.apache.hadoop.classification.InterfaceStability$Evolving
[WARNING] - org.apache.hadoop.classification.tools.IncludePublicAnnotationsStandardDoclet
[WARNING] - org.apache.hadoop.classification.InterfaceStability$Stable
[WARNING] - org.apache.hadoop.classification.InterfaceAudience
[WARNING] - 6 more...
[WARNING] checker-qual-2.5.2.jar, flink-fs-hadoop-shaded-1.15.0.jar define 302 overlapping classes:
[WARNING] - org.checkerframework.checker.formatter.FormatUtil
[WARNING] - org.checkerframework.checker.units.qual.PolyUnit
[WARNING] - org.checkerframework.checker.units.qual.MixedUnits
[WARNING] - org.checkerframework.checker.regex.qual.PolyRegex
[WARNING] - org.checkerframework.checker.units.qual.C
[WARNING] - org.checkerframework.checker.formatter.FormatUtil$IllegalFormatConversionCategoryException
[WARNING] - org.checkerframework.framework.qual.Unqualified
[WARNING] - org.checkerframework.common.reflection.qual.UnknownMethod
[WARNING] - org.checkerframework.framework.qual.EnsuresQualifierIf
[WARNING] - org.checkerframework.checker.signedness.SignednessUtil
[WARNING] - 292 more...
[WARNING] flink-fs-hadoop-shaded-1.15.0.jar, dnsjava-2.1.7.jar define 184 overlapping classes:
[WARNING] - org.xbill.DNS.MRRecord
[WARNING] - org.xbill.DNS.DNAMERecord
[WARNING] - org.xbill.DNS.DSRecord$Digest
[WARNING] - org.xbill.DNS.utils.base32
[WARNING] - org.xbill.DNS.APLRecord$Element
[WARNING] - org.xbill.DNS.Address
[WARNING] - org.xbill.DNS.SSHFPRecord
[WARNING] - org.xbill.DNS.ExtendedResolver$Resolution
[WARNING] - org.xbill.DNS.Serial
[WARNING] - org.xbill.DNS.DHCIDRecord
[WARNING] - 174 more...
[WARNING] guava-27.0-jre.jar, flink-fs-hadoop-shaded-1.15.0.jar, failureaccess-1.0.jar define 2 overlapping classes:
[WARNING] - com.google.common.util.concurrent.internal.InternalFutureFailureAccess
[WARNING] - com.google.common.util.concurrent.internal.InternalFutures
[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 /root/software/flink/flink-1.15.0/flink-filesystems/flink-gs-fs-hadoop/target/flink-gs-fs-hadoop-1.15.0.jar with /root/software/flink/flink-1.15.0/flink-filesystems/flink-gs-fs-hadoop/target/flink-gs-fs-hadoop-1.15.0-shaded.jar
[INFO] Dependency-reduced POM written at: /root/software/flink/flink-1.15.0/flink-filesystems/flink-gs-fs-hadoop/target/dependency-reduced-pom.xml
[INFO]
[INFO] -----------------< org.apache.flink:flink-runtime-web >-----------------
[INFO] Building Flink : Runtime web 1.15.0 [93/206]
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:3.1.0:clean (default-clean) @ flink-runtime-web ---
[INFO]
[INFO] --- maven-checkstyle-plugin:2.17:check (validate) @ flink-runtime-web ---
[INFO]
[INFO] --- spotless-maven-plugin:2.4.2:check (spotless-check) @ flink-runtime-web ---
[INFO]
[INFO] --- maven-enforcer-plugin:3.0.0-M1:enforce (enforce-maven-version) @ flink-runtime-web ---
[INFO]
[INFO] --- maven-enforcer-plugin:3.0.0-M1:enforce (enforce-maven) @ flink-runtime-web ---
[INFO]
[INFO] --- maven-enforcer-plugin:3.0.0-M1:enforce (ban-unsafe-snakeyaml) @ flink-runtime-web ---
[INFO]
[INFO] --- maven-enforcer-plugin:3.0.0-M1:enforce (ban-unsafe-jackson) @ flink-runtime-web ---
[INFO]
[INFO] --- maven-enforcer-plugin:3.0.0-M1:enforce (forbid-log4j-1) @ flink-runtime-web ---
[INFO]
[INFO] --- maven-enforcer-plugin:3.0.0-M1:enforce (forbid-direct-akka-rpc-dependencies) @ flink-runtime-web ---
[INFO]
[INFO] --- maven-enforcer-plugin:3.0.0-M1:enforce (forbid-direct-table-planner-dependencies) @ flink-runtime-web ---
[INFO]
[INFO] --- maven-enforcer-plugin:3.0.0-M1:enforce (enforce-versions) @ flink-runtime-web ---
[INFO]
[INFO] --- directory-maven-plugin:0.1:directory-of (directories) @ flink-runtime-web ---
[INFO] Directory of org.apache.flink:flink-parent set to: /root/software/flink/flink-1.15.0
[INFO]
[INFO] --- maven-remote-resources-plugin:1.5:process (process-resource-bundles) @ flink-runtime-web ---
[INFO]
[INFO] --- frontend-maven-plugin:1.11.0:install-node-and-npm (install node and npm) @ flink-runtime-web ---
[INFO] Installing node version v16.13.2
[INFO] Unpacking /var/lib/docker/overlay2/a9b3fe8896c3ce6a96626d18267ea6d73477b24ea0d64dec04df0be2bb314f83/merged/root/.m2/repository/com/github/eirslett/node/16.13.2/node-16.13.2-linux-x64.tar.gz into /root/software/flink/flink-1.15.0/flink-runtime-web/web-dashboard/node/tmp
[INFO] Copying node binary from /root/software/flink/flink-1.15.0/flink-runtime-web/web-dashboard/node/tmp/node-v16.13.2-linux-x64/bin/node to /root/software/flink/flink-1.15.0/flink-runtime-web/web-dashboard/node/node
[INFO] Installed node locally.
[INFO] Installing npm version 8.1.2
[INFO] Unpacking /var/lib/docker/overlay2/a9b3fe8896c3ce6a96626d18267ea6d73477b24ea0d64dec04df0be2bb314f83/merged/root/.m2/repository/com/github/eirslett/npm/8.1.2/npm-8.1.2.tar.gz into /root/software/flink/flink-1.15.0/flink-runtime-web/web-dashboard/node/node_modules
[INFO] Installed npm locally.
[INFO]
[INFO] --- frontend-maven-plugin:1.11.0:npm (npm install) @ flink-runtime-web ---
[INFO] Running 'npm ci --cache-max=0 --no-save ${npm.proxy}' in /root/software/flink/flink-1.15.0/flink-runtime-web/web-dashboard
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for Flink : 1.15.0:
[INFO]
[INFO] Flink : ............................................ SUCCESS [ 6.390 s]
[INFO] Flink : Annotations ................................ SUCCESS [ 4.947 s]
[INFO] Flink : Architecture Tests ......................... SUCCESS [ 0.449 s]
[INFO] Flink : Architecture Tests : Base .................. SUCCESS [ 1.499 s]
[INFO] Flink : Test utils : ............................... SUCCESS [ 0.244 s]
[INFO] Flink : Test utils : Junit ......................... SUCCESS [ 4.416 s]
[INFO] Flink : Metrics : .................................. SUCCESS [ 0.349 s]
[INFO] Flink : Metrics : Core ............................. SUCCESS [ 2.425 s]
[INFO] Flink : Core ....................................... SUCCESS [01:01 min]
[INFO] Flink : Table : .................................... SUCCESS [ 0.430 s]
[INFO] Flink : Table : Common ............................. SUCCESS [ 18.282 s]
[INFO] Flink : Table : API Java ........................... SUCCESS [ 7.530 s]
[INFO] Flink : Java ....................................... SUCCESS [ 10.291 s]
[INFO] Flink : Connectors : ............................... SUCCESS [ 0.581 s]
[INFO] Flink : Connectors : File Sink Common .............. SUCCESS [ 2.188 s]
[INFO] Flink : RPC : ...................................... SUCCESS [ 0.436 s]
[INFO] Flink : RPC : Core ................................. SUCCESS [ 1.167 s]
[INFO] Flink : RPC : Akka ................................. SUCCESS [ 8.554 s]
[INFO] Flink : RPC : Akka-Loader .......................... SUCCESS [ 7.841 s]
[INFO] Flink : Queryable state : .......................... SUCCESS [ 0.189 s]
[INFO] Flink : Queryable state : Client Java .............. SUCCESS [ 1.633 s]
[INFO] Flink : FileSystems : .............................. SUCCESS [ 0.281 s]
[INFO] Flink : FileSystems : Hadoop FS .................... SUCCESS [ 8.403 s]
[INFO] Flink : Runtime .................................... SUCCESS [01:43 min]
[INFO] Flink : Streaming Java ............................. SUCCESS [ 39.201 s]
[INFO] Flink : Table : API bridge base .................... SUCCESS [ 0.768 s]
[INFO] Flink : Table : API Java bridge .................... SUCCESS [ 2.060 s]
[INFO] Flink : Table : Code Splitter ...................... SUCCESS [ 3.854 s]
[INFO] Flink : Optimizer .................................. SUCCESS [ 7.710 s]
[INFO] Flink : Clients .................................... SUCCESS [ 5.988 s]
[INFO] Flink : DSTL ....................................... SUCCESS [ 0.282 s]
[INFO] Flink : DSTL : DFS ................................. SUCCESS [ 1.349 s]
[INFO] Flink : State backends : ........................... SUCCESS [ 0.181 s]
[INFO] Flink : State backends : RocksDB ................... SUCCESS [ 3.817 s]
[INFO] Flink : State backends : Changelog ................. SUCCESS [ 1.773 s]
[INFO] Flink : Test utils : Utils ......................... SUCCESS [ 3.811 s]
[INFO] Flink : Libraries : ................................ SUCCESS [ 0.198 s]
[INFO] Flink : Libraries : CEP ............................ SUCCESS [ 5.936 s]
[INFO] Flink : Table : Runtime ............................ SUCCESS [ 18.268 s]
[INFO] Flink : Scala ...................................... SUCCESS [ 59.039 s]
[INFO] Flink : Table : SQL Parser ......................... SUCCESS [ 12.049 s]
[INFO] Flink : Table : SQL Parser Hive .................... SUCCESS [ 5.760 s]
[INFO] Flink : Table : API Scala .......................... SUCCESS [ 19.510 s]
[INFO] Flink : Test utils : Connectors .................... SUCCESS [ 2.381 s]
[INFO] Flink : Architecture Tests : Test .................. SUCCESS [ 0.881 s]
[INFO] Flink : Connectors : Base .......................... SUCCESS [ 3.623 s]
[INFO] Flink : Connectors : Files ......................... SUCCESS [ 5.249 s]
[INFO] Flink : Examples : ................................. SUCCESS [ 0.305 s]
[INFO] Flink : Examples : Batch ........................... SUCCESS [ 16.950 s]
[INFO] Flink : Connectors : Hadoop compatibility .......... SUCCESS [ 9.597 s]
[INFO] Flink : Tests ...................................... SUCCESS [01:00 min]
[INFO] Flink : Streaming Scala ............................ SUCCESS [ 47.933 s]
[INFO] Flink : Table : API Scala bridge ................... SUCCESS [ 17.816 s]
[INFO] Flink : Table : Planner ............................ SUCCESS [03:54 min]
[INFO] Flink : Formats : .................................. SUCCESS [ 0.303 s]
[INFO] Flink : Format : Common ............................ SUCCESS [ 0.254 s]
[INFO] Flink : Formats : Csv .............................. SUCCESS [ 1.541 s]
[INFO] Flink : Formats : Hadoop bulk ...................... SUCCESS [ 2.068 s]
[INFO] Flink : Formats : Orc .............................. SUCCESS [ 2.207 s]
[INFO] Flink : Formats : Orc nohive ....................... SUCCESS [ 1.384 s]
[INFO] Flink : Formats : Avro ............................. SUCCESS [ 4.438 s]
[INFO] Flink : Formats : Parquet .......................... SUCCESS [ 9.062 s]
[INFO] Flink : Connectors : Hive .......................... SUCCESS [ 21.479 s]
[INFO] Flink : Python ..................................... SUCCESS [ 42.098 s]
[INFO] Flink : Table : SQL Client ......................... SUCCESS [ 5.323 s]
[INFO] Flink : Connectors : AWS Base ...................... SUCCESS [ 2.715 s]
[INFO] Flink : Connectors : Cassandra ..................... SUCCESS [ 5.100 s]
[INFO] Flink : Formats : Json ............................. SUCCESS [ 2.275 s]
[INFO] Flink : Connectors : Elasticsearch base ............ SUCCESS [ 5.249 s]
[INFO] Flink : Connectors : Elasticsearch 6 ............... SUCCESS [ 2.344 s]
[INFO] Flink : Connectors : Elasticsearch 7 ............... SUCCESS [ 1.695 s]
[INFO] Flink : Connectors : Google PubSub ................. SUCCESS [ 1.642 s]
[INFO] Flink : Connectors : HBase base .................... SUCCESS [ 1.993 s]
[INFO] Flink : Connectors : HBase 1.4 ..................... SUCCESS [ 3.741 s]
[INFO] Flink : Connectors : HBase 2.2 ..................... SUCCESS [ 3.943 s]
[INFO] Flink : Connectors : JDBC .......................... SUCCESS [ 3.726 s]
[INFO] Flink : Metrics : JMX .............................. SUCCESS [ 1.495 s]
[INFO] Flink : Formats : Avro confluent registry .......... SUCCESS [ 1.802 s]
[INFO] Flink : Connectors : Kafka ......................... SUCCESS [ 7.029 s]
[INFO] Flink : Connectors : Amazon Kinesis Data Streams ... SUCCESS [ 1.678 s]
[INFO] Flink : Connectors : Kinesis ....................... SUCCESS [ 16.292 s]
[INFO] Flink : Connectors : Nifi .......................... SUCCESS [ 1.778 s]
[INFO] Flink : Connectors : Pulsar ........................ SUCCESS [ 32.569 s]
[INFO] Flink : Connectors : RabbitMQ ...................... SUCCESS [ 1.541 s]
[INFO] Flink : Architecture Tests : Production ............ SUCCESS [ 3.061 s]
[INFO] Flink : FileSystems : Hadoop FS shaded ............. SUCCESS [ 10.452 s]
[INFO] Flink : FileSystems : S3 FS Base ................... SUCCESS [ 4.533 s]
[INFO] Flink : FileSystems : S3 FS Hadoop ................. SUCCESS [ 6.095 s]
[INFO] Flink : FileSystems : S3 FS Presto ................. SUCCESS [ 22.181 s]
[INFO] Flink : FileSystems : OSS FS ....................... SUCCESS [ 7.992 s]
[INFO] Flink : FileSystems : Azure FS Hadoop .............. SUCCESS [ 14.553 s]
[INFO] Flink : FileSystems : Google Storage FS Hadoop ..... SUCCESS [ 13.768 s]
[INFO] Flink : Runtime web ................................ FAILURE [01:05 min]
[INFO] Flink : Connectors : HCatalog ...................... SKIPPED
[INFO] Flink : Connectors : Amazon Kinesis Data Firehose .. SKIPPED
[INFO] Flink : Connectors : SQL : Elasticsearch 6 ......... SKIPPED
[INFO] Flink : Connectors : SQL : Elasticsearch 7 ......... SKIPPED
[INFO] Flink : Connectors : SQL : HBase 1.4 ............... SKIPPED
[INFO] Flink : Connectors : SQL : HBase 2.2 ............... SKIPPED
[INFO] Flink : Connectors : SQL : Hive 1.2.2 .............. SKIPPED
[INFO] Flink : Connectors : SQL : Hive 2.2.0 .............. SKIPPED
[INFO] Flink : Connectors : SQL : Hive 2.3.6 .............. SKIPPED
[INFO] Flink : Connectors : SQL : Hive 3.1.2 .............. SKIPPED
[INFO] Flink : Connectors : SQL : Kafka ................... SKIPPED
[INFO] Flink : Connectors : SQL : Amazon Kinesis Data Streams SKIPPED
[INFO] Flink : Connectors : SQL : Amazon Kinesis Data Firehose SKIPPED
[INFO] Flink : Connectors : SQL : Kinesis ................. SKIPPED
[INFO] Flink : Connectors : SQL : Pulsar .................. SKIPPED
[INFO] Flink : Connectors : SQL : RabbitMQ ................ SKIPPED
[INFO] Flink : Formats : Sequence file .................... SKIPPED
[INFO] Flink : Formats : Compress ......................... SKIPPED
[INFO] Flink : Formats : Avro AWS Glue Schema Registry .... SKIPPED
[INFO] Flink : Formats : JSON AWS Glue Schema Registry .... SKIPPED
[INFO] Flink : Formats : SQL Orc .......................... SKIPPED
[INFO] Flink : Formats : SQL Parquet ...................... SKIPPED
[INFO] Flink : Formats : SQL Avro ......................... SKIPPED
[INFO] Flink : Formats : SQL Avro Confluent Registry ...... SKIPPED
[INFO] Flink : Examples : Streaming ....................... SKIPPED
[INFO] Flink : Examples : Table ........................... SKIPPED
[INFO] Flink : Examples : Build Helper : .................. SKIPPED
[INFO] Flink : Examples : Build Helper : Streaming State machine SKIPPED
[INFO] Flink : Examples : Build Helper : Streaming Google PubSub SKIPPED
[INFO] Flink : Container .................................. SKIPPED
[INFO] Flink : Queryable state : Runtime .................. SKIPPED
[INFO] Flink : Dist-Scala ................................. SKIPPED
[INFO] Flink : Kubernetes ................................. SKIPPED
[INFO] Flink : Yarn ....................................... SKIPPED
[INFO] Flink : Table : API Java Uber ...................... SKIPPED
[INFO] Flink : Table : Planner Loader Bundle .............. SKIPPED
[INFO] Flink : Table : Planner Loader ..................... SKIPPED
[INFO] Flink : Libraries : Gelly .......................... SKIPPED
[INFO] Flink : Libraries : Gelly scala .................... SKIPPED
[INFO] Flink : Libraries : Gelly Examples ................. SKIPPED
[INFO] Flink : External resources : ....................... SKIPPED
[INFO] Flink : External resources : GPU ................... SKIPPED
[INFO] Flink : Metrics : Dropwizard ....................... SKIPPED
[INFO] Flink : Metrics : Graphite ......................... SKIPPED
[INFO] Flink : Metrics : InfluxDB ......................... SKIPPED
[INFO] Flink : Metrics : Prometheus ....................... SKIPPED
[INFO] Flink : Metrics : StatsD ........................... SKIPPED
[INFO] Flink : Metrics : Datadog .......................... SKIPPED
[INFO] Flink : Metrics : Slf4j ............................ SKIPPED
[INFO] Flink : Libraries : CEP Scala ...................... SKIPPED
[INFO] Flink : Libraries : State processor API ............ SKIPPED
[INFO] Flink : Dist ....................................... SKIPPED
[INFO] Flink : Yarn Tests ................................. SKIPPED
[INFO] Flink : E2E Tests : ................................ SKIPPED
[INFO] Flink : E2E Tests : CLI ............................ SKIPPED
[INFO] Flink : E2E Tests : Parent Child classloading program SKIPPED
[INFO] Flink : E2E Tests : Parent Child classloading lib-package SKIPPED
[INFO] Flink : E2E Tests : Dataset allround ............... SKIPPED
[INFO] Flink : E2E Tests : Dataset Fine-grained recovery .. SKIPPED
[INFO] Flink : E2E Tests : Datastream allround ............ SKIPPED
[INFO] Flink : E2E Tests : Batch SQL ...................... SKIPPED
[INFO] Flink : E2E Tests : Stream SQL ..................... SKIPPED
[INFO] Flink : E2E Tests : Distributed cache via blob ..... SKIPPED
[INFO] Flink : E2E Tests : High parallelism iterations .... SKIPPED
[INFO] Flink : E2E Tests : Stream stateful job upgrade .... SKIPPED
[INFO] Flink : E2E Tests : Queryable state ................ SKIPPED
[INFO] Flink : E2E Tests : Local recovery and allocation .. SKIPPED
[INFO] Flink : E2E Tests : Elasticsearch 6 ................ SKIPPED
[INFO] Flink : Quickstart : ............................... SKIPPED
[INFO] Flink : Quickstart : Java .......................... SKIPPED
[INFO] Flink : Quickstart : Scala ......................... SKIPPED
[INFO] Flink : E2E Tests : Quickstart ..................... SKIPPED
[INFO] Flink : E2E Tests : Confluent schema registry ...... SKIPPED
[INFO] Flink : E2E Tests : Stream state TTL ............... SKIPPED
[INFO] Flink : E2E Tests : SQL client ..................... SKIPPED
[INFO] Flink : E2E Tests : File sink ...................... SKIPPED
[INFO] Flink : E2E Tests : State evolution ................ SKIPPED
[INFO] Flink : E2E Tests : RocksDB state memory control ... SKIPPED
[INFO] Flink : E2E Tests : Common ......................... SKIPPED
[INFO] Flink : E2E Tests : Metrics availability ........... SKIPPED
[INFO] Flink : E2E Tests : Metrics reporter prometheus .... SKIPPED
[INFO] Flink : E2E Tests : Heavy deployment ............... SKIPPED
[INFO] Flink : E2E Tests : Connectors : Google PubSub ..... SKIPPED
[INFO] Flink : E2E Tests : Streaming Kafka base ........... SKIPPED
[INFO] Flink : E2E Tests : Streaming Kafka ................ SKIPPED
[INFO] Flink : E2E Tests : Plugins : ...................... SKIPPED
[INFO] Flink : E2E Tests : Plugins : Dummy fs ............. SKIPPED
[INFO] Flink : E2E Tests : Plugins : Another dummy fs ..... SKIPPED
[INFO] Flink : E2E Tests : TPCH ........................... SKIPPED
[INFO] Flink : E2E Tests : Streaming Kinesis .............. SKIPPED
[INFO] Flink : E2E Tests : Elasticsearch 7 ................ SKIPPED
[INFO] Flink : E2E Tests : Common Kafka ................... SKIPPED
[INFO] Flink : E2E Tests : TPCDS .......................... SKIPPED
[INFO] Flink : E2E Tests : Netty shuffle memory control ... SKIPPED
[INFO] Flink : E2E Tests : Python ......................... SKIPPED
[INFO] Flink : E2E Tests : HBase .......................... SKIPPED
[INFO] Flink : E2E Tests : Pulsar ......................... SKIPPED
[INFO] Flink : E2E Tests : Avro AWS Glue Schema Registry .. SKIPPED
[INFO] Flink : E2E Tests : JSON AWS Glue Schema Registry .. SKIPPED
[INFO] Flink : E2E Tests : Scala .......................... SKIPPED
[INFO] Flink : E2E Tests : Kinesis SQL tests .............. SKIPPED
[INFO] Flink : E2E Tests : Kinesis Firehose SQL tests ..... SKIPPED
[INFO] Flink : State backends : Heap spillable ............ SKIPPED
[INFO] Flink : Table : Test Utils ......................... SKIPPED
[INFO] Flink : Contrib : .................................. SKIPPED
[INFO] Flink : Contrib : Connectors : Wikiedits ........... SKIPPED
[INFO] Flink : FileSystems : Tests ........................ SKIPPED
[INFO] Flink : Docs ....................................... SKIPPED
[INFO] Flink : Walkthrough : .............................. SKIPPED
[INFO] Flink : Walkthrough : Common ....................... SKIPPED
[INFO] Flink : Walkthrough : Datastream Java .............. SKIPPED
[INFO] Flink : Walkthrough : Datastream Scala ............. SKIPPED
[INFO] Flink : Tools : CI : Java .......................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 19:49 min
[INFO] Finished at: 2022-10-10T09:35:14+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.11.0:npm (npm install) on project flink-runtime-web: Failed to run task: 'npm ci --cache-max=0 --no-save ${npm.proxy}' failed. org.apache.commons.exec.ExecuteException: Process exited with an error: 137 (Exit value: 137) -> [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/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <args> -rf :flink-runtime-web
解决方法需要2步:
1.修改flink-runtime-web的pom.xml中<npm.proxy>进行替换将
<npm.proxy>--registry http://172.17.0.1:8888/repository/npm/</npm.proxy>
替换为国内npm源:
<npm.proxy>--registry https://registry.npmmirror.com</npm.proxy>
2.修改flink-runtime-web/web-dashboard中的package.json文件:
由于flink部署时通过日志可以看到npm没有配置环境变量,若执行时使用相对路径会找不到命令,核心日志如下:
[INFO] Installing node version v16.13.2
[INFO] Unpacking /var/lib/docker/overlay2/a9b3fe8896c3ce6a96626d18267ea6d73477b24ea0d64dec04df0be2bb314f83/merged/root/.m2/repository/com/github/eirslett/node/16.13.2/node-16.13.2-linux-x64.tar.gz into /root/software/flink/flink-1.15.0/flink-runtime-web/web-dashboard/node/tmp
[INFO] Copying node binary from /root/software/flink/flink-1.15.0/flink-runtime-web/web-dashboard/node/tmp/node-v16.13.2-linux-x64/bin/node to /root/software/flink/flink-1.15.0/flink-runtime-web/web-dashboard/node/node
[INFO] Installed node locally.
[INFO] Installing npm version 8.1.2
[INFO] Unpacking /var/lib/docker/overlay2/a9b3fe8896c3ce6a96626d18267ea6d73477b24ea0d64dec04df0be2bb314f83/merged/root/.m2/repository/com/github/eirslett/npm/8.1.2/npm-8.1.2.tar.gz into /root/software/flink/flink-1.15.0/flink-runtime-web/web-dashboard/node/node_modules
[INFO] Installed npm locally.
package.json原文件如下:
{
"name": "flink-dashboard",
"version": "2.0.0",
"scripts": {
"ng": "node node_modules/@angular/cli/bin/ng",
"start": "ng serve",
"build": "ng build --configuration production --base-href ./",
"test": "ng test",
"lint": "eslint --cache src --ext .ts,.html && stylelint \"**/*.less\"",
"lint:fix": "eslint --fix --cache src --ext .ts,.html && stylelint \"**/*.less\" --fix",
"ci-check": "npm run lint && npm run build",
"proxy": "ng serve --proxy-config proxy.conf.json",
"prepare": "cd ../.. && husky install flink-runtime-web/web-dashboard/.husky",
"lint-staged": "lint-staged"
},
"private": true,
"dependencies": {
"@angular/animations": "~13.1.3",
"@angular/common": "~13.1.3",
"@angular/compiler": "~13.1.3",
"@angular/core": "~13.1.3",
"@angular/forms": "~13.1.3",
"@angular/platform-browser": "~13.1.3",
"@angular/platform-browser-dynamic": "~13.1.3",
"@angular/router": "~13.1.3",
"@antv/g2": "^4.1.34",
"core-js": "^3.19.1",
"d3": "^7.1.1",
"d3-flame-graph": "^4.1.1",
"d3-tip": "^0.9.1",
"dagre": "^0.8.5",
"monaco-editor": "^0.31.1",
"ng-zorro-antd": "^13.2.2",
"rxjs": "^6.6.7",
"tslib": "^2.0.0",
"zone.js": "~0.11.4"
},
"devDependencies": {
"@angular-devkit/build-angular": "~13.1.4",
"@angular-eslint/builder": "13.0.1",
"@angular-eslint/eslint-plugin": "13.0.1",
"@angular-eslint/eslint-plugin-template": "13.0.1",
"@angular-eslint/schematics": "13.0.1",
"@angular-eslint/template-parser": "13.0.1",
"@angular/cli": "~13.1.4",
"@angular/compiler-cli": "~13.1.3",
"@angular/language-service": "~13.1.3",
"@testing-library/angular": "^11.0.2",
"@types/d3": "^7.1.0",
"@types/dagre": "^0.7.46",
"@types/jasmine": "~3.10.2",
"@types/jasminewd2": "~2.0.10",
"@types/node": "^16.11.6",
"@typescript-eslint/eslint-plugin": "^5.10.0",
"@typescript-eslint/parser": "^5.10.0",
"eslint": "^8.7.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-import": "^2.25.4",
"eslint-plugin-jsdoc": "^37.6.1",
"eslint-plugin-prefer-arrow": "^1.2.3",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-unused-imports": "^2.0.0",
"husky": "^7.0.4",
"jasmine-core": "^4.0.0",
"jasmine-spec-reporter": "^7.0.0",
"karma": "~6.3.14",
"karma-chrome-launcher": "~3.1.0",
"karma-coverage": "^2.1.0",
"karma-jasmine": "~4.0.1",
"karma-jasmine-html-reporter": "^1.7.0",
"lint-staged": "^12.2.1",
"postcss-less": "^6.0.0",
"prettier": "^2.4.1",
"protractor": "~7.0.0",
"stylelint": "^14.0.1",
"stylelint-config-hudochenkov": "^6.0.1",
"stylelint-config-prettier": "^9.0.3",
"stylelint-config-standard": "^24.0.0",
"stylelint-order": "^5.0.0",
"stylelint-prettier": "^2.0.0",
"ts-node": "^10.4.0",
"typescript": "~4.5.4"
},
"lint-staged": {
"**/*.{ts,html}": [
"eslint --fix"
],
"**/*.less": [
"stylelint --fix"
]
}
}
因此需要将package.json文件的"scripts"模块中用到相对路径命令改为绝对路径,修改文件如下:
{
"name": "flink-dashboard",
"version": "2.0.0",
"scripts": {
"ng": "/root/software/flink/flink-1.15.0/flink-runtime-web/web-dashboard/node/node node_modules/@angular/cli/bin/ng",
"start": "/root/software/flink/flink-1.15.0/flink-runtime-web/web-dashboard/node_modules/.bin/ng serve",
"build": "/root/software/flink/flink-1.15.0/flink-runtime-web/web-dashboard/node_modules/.bin/ng build --configuration production --base-href ./",
"test": "/root/software/flink/flink-1.15.0/flink-runtime-web/web-dashboard/node_modules/.bin/ng test",
"lint": "/root/software/flink/flink-1.15.0/flink-runtime-web/web-dashboard/node_modules/.bin/eslint --cache src --ext .ts,.html && /root/software/flink/flink-1.15.0/flink-runtime-web/web-dashboard/node_modules/.bin/stylelint \"**/*.less\"",
"lint:fix": "/root/software/flink/flink-1.15.0/flink-runtime-web/web-dashboard/node_modules/.bin/eslint --fix --cache src --ext .ts,.html && /root/software/flink/flink-1.15.0/flink-runtime-web/web-dashboard/node_modules/.bin/stylelint \"**/*.less\" --fix",
"ci-check": "/root/software/flink/flink-1.15.0/flink-runtime-web/web-dashboard/node/npm run lint && /root/software/flink/flink-1.15.0/flink-runtime-web/web-dashboard/node/npm run build",
"proxy": "/root/software/flink/flink-1.15.0/flink-runtime-web/web-dashboard/node_modules/.bin/ng serve --proxy-config proxy.conf.json",
"prepare": "cd ../.. && /root/software/flink/flink-1.15.0/flink-runtime-web/web-dashboard/node_modules/.bin/husky install flink-runtime-web/web-dashboard/.husky",
"lint-staged": "lint-staged"
},
"private": true,
"dependencies": {
"@angular/animations": "~13.1.3",
"@angular/common": "~13.1.3",
"@angular/compiler": "~13.1.3",
"@angular/core": "~13.1.3",
"@angular/forms": "~13.1.3",
"@angular/platform-browser": "~13.1.3",
"@angular/platform-browser-dynamic": "~13.1.3",
"@angular/router": "~13.1.3",
"@ant-design/icons-angular": "^13.0.2",
"@antv/g2": "^4.1.34",
"core-js": "^3.19.1",
"d3": "^7.1.1",
"d3-flame-graph": "^4.1.1",
"d3-tip": "^0.9.1",
"dagre": "^0.8.5",
"monaco-editor": "^0.31.1",
"ng-zorro-antd": "^13.0.1",
"rxjs": "^6.6.7",
"tslib": "^2.0.0",
"zone.js": "~0.11.4"
},
"devDependencies": {
"@angular-devkit/build-angular": "~13.1.4",
"@angular-eslint/builder": "13.0.1",
"@angular-eslint/eslint-plugin": "13.0.1",
"@angular-eslint/eslint-plugin-template": "13.0.1",
"@angular-eslint/schematics": "13.0.1",
"@angular-eslint/template-parser": "13.0.1",
"@angular/cli": "~13.1.4",
"@angular/compiler-cli": "~13.1.3",
"@angular/language-service": "~13.1.3",
"@testing-library/angular": "^11.0.2",
"@types/d3": "^7.1.0",
"@types/dagre": "^0.7.46",
"@types/jasmine": "~3.10.2",
"@types/jasminewd2": "~2.0.10",
"@types/node": "^16.11.6",
"@typescript-eslint/eslint-plugin": "^5.10.0",
"@typescript-eslint/parser": "^5.10.0",
"eslint": "^8.7.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-import": "^2.25.4",
"eslint-plugin-jsdoc": "^37.6.1",
"eslint-plugin-prefer-arrow": "^1.2.3",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-unused-imports": "^2.0.0",
"husky": "^7.0.4",
"jasmine-core": "^4.0.0",
"jasmine-spec-reporter": "^7.0.0",
"karma": "~6.3.14",
"karma-chrome-launcher": "~3.1.0",
"karma-coverage": "^2.1.0",
"karma-jasmine": "~4.0.1",
"karma-jasmine-html-reporter": "^1.7.0",
"lint-staged": "^12.2.1",
"postcss-less": "^6.0.0",
"prettier": "^2.4.1",
"protractor": "~7.0.0",
"stylelint": "^14.0.1",
"stylelint-config-hudochenkov": "^6.0.1",
"stylelint-config-prettier": "^9.0.3",
"stylelint-config-standard": "^24.0.0",
"stylelint-order": "^5.0.0",
"stylelint-prettier": "^2.0.0",
"ts-node": "^10.4.0",
"typescript": "~4.5.4"
},
"lint-staged": {
"**/*.{ts,html}": [
"eslint --fix"
],
"**/*.less": [
"stylelint --fix"
]
}
}
主要就是对package.json中的"scripts"进行修改,将node、ng、eslint、stylelint、npm、husky配置为绝对路径。
修改完成上述两步再重新执行mvn clean package -DskipTests -rf :flink-runtime-web进行编译即可通过。
欢迎关注“程序杂货铺”公众号,里面有精彩内容,欢迎大家收看^_^