asterixdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Xikui Wang <xik...@uci.edu>
Subject Re: Head version on Github compile error.
Date Wed, 23 Mar 2016 22:36:56 GMT
Hi Murtadha,

Thanks for your help. 'mvn clean install' did solve my problem. :)

Best,
Xikui

On Wed, Mar 23, 2016 at 2:11 PM, Murtadha Hubail <hubailmor@gmail.com>
wrote:

> Hi Xikui,
>
> The error is happening because Node.java is an auto-generated class and it
> appears that you have an old version in your local maven repository.
>
> If you checkout a clean HEAD version and do ‘mvn clean install’, it should
> work.
>
> Cheers,
> Murtadha
>
> On Mar 23, 2016, at 1:26 PM, Xikui Wang <xikuiw@uci.edu> wrote:
>
> Hi,
>
> I met a problem when compiling the head version. I think it's because
> certain method is missing in the Node.java. Here are the error message:
>
>
> $PATH/incubator-asterixdb/asterix-common/src/main/java/org/apache/asterix/common/config/AsterixReplicationProperties.java
>
> Error:(84, 32) java: cannot find symbol
>  symbol:   method getReplicationPort()
>  location: variable node of type
> org.apache.asterix.event.schema.cluster.Node
> Error:(84, 68) java: cannot find symbol
>  symbol:   method getReplicationPort()
>  location: variable node of type
> org.apache.asterix.event.schema.cluster.Node
>
>
>
> Here are the git diffs I got with one of the previous version I have:
>
> index cb7bcab..5d31d9a 100644
>
> ---
>
> a/asterix-common/src/main/java/org/apache/asterix/common/config/AsterixReplicationProperties.java
> +++
>
> b/asterix-common/src/main/java/org/apache/asterix/common/config/AsterixReplicationProperties.java
> @@ -77,10 +77,15 @@ public class AsterixReplicationProperties extends
> AbstractAsterixProperties {
>     }
>     public int getDataReplicationPort(String nodeId) {
> -        if (cluster != null) {
> -            return
> cluster.getDataReplication().getReplicationPort().intValue();
> +        if (cluster != null && cluster.getDataReplication() != null) {
> +            for (int i = 0; i < cluster.getNode().size(); i++) {
> +                Node node = cluster.getNode().get(i);
> +                if (getRealCluserNodeID(node.getId()).equals(nodeId)) {
> +                    return node.getReplicationPort() != null ?
> node.getReplicationPort().intValue()
> +                            :
> cluster.getDataReplication().getReplicationPort().intValue();
> +                }
> +            }
>         }
> -
>         return REPLICATION_DATAPORT_DEFAULT;
>     }
>
>
>
> Thank you.
>
> Best,
> Xikui
>
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message