pulsar-manager icon indicating copy to clipboard operation
pulsar-manager copied to clipboard

compile error

Open wenjun8888 opened this issue 5 years ago • 2 comments

The latest version can not compile, see:

Task :compileJava /opt/Downloads/pulsar-manager/src/main/java/org/apache/pulsar/manager/service/impl/BrokerStatsServiceImpl.java:132: error: cannot find symbol if (StringUtils.isNotBlank(pulsarJwtToken)) { ^ symbol: variable pulsarJwtToken location: class BrokerStatsServiceImpl /opt/Downloads/pulsar-manager/src/main/java/org/apache/pulsar/manager/service/impl/BrokerStatsServiceImpl.java:132: error: cannot find symbol if (StringUtils.isNotBlank(pulsarJwtToken)) { ^ symbol: variable StringUtils location: class BrokerStatsServiceImpl /opt/Downloads/pulsar-manager/src/main/java/org/apache/pulsar/manager/service/impl/BrokerStatsServiceImpl.java:133: error: cannot find symbol header.put("Authorization", String.format("Bearer %s", pulsarJwtToken)); ^ symbol: variable pulsarJwtToken location: class BrokerStatsServiceImpl /opt/Downloads/pulsar-manager/src/main/java/org/apache/pulsar/manager/service/impl/BrokerStatsServiceImpl.java:133: error: cannot find symbol header.put("Authorization", String.format("Bearer %s", pulsarJwtToken)); ^ symbol: variable header location: class BrokerStatsServiceImpl /opt/Downloads/pulsar-manager/src/main/java/org/apache/pulsar/manager/service/impl/BrokerStatsServiceImpl.java:139: error: cannot find symbol String httpTestResult = HttpUtil.doGet( url + "/admin/v2/brokers/health", header); ^ symbol: variable header location: class BrokerStatsServiceImpl /opt/Downloads/pulsar-manager/src/main/java/org/apache/pulsar/manager/service/impl/BrokerStatsServiceImpl.java:139: error: cannot find symbol String httpTestResult = HttpUtil.doGet( url + "/admin/v2/brokers/health", header); ^ symbol: variable HttpUtil location: class BrokerStatsServiceImpl Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 6 errors

Task :compileJava FAILED

FAILURE: Build failed with an exception.

  • What went wrong: Execution failed for task ':compileJava'.

Compilation failed; see the compiler error output for details.

wenjun8888 avatar Jun 29 '20 17:06 wenjun8888

Thank,it works. But i find when it's build , the port 7750 disappered and a port 8080 instead. Is it correct?

wenjun8888 avatar Jul 01 '20 06:07 wenjun8888

it depends on application.properties configuration file. We are still in the process on refactoring configuration and the way we are bundling the front-end.

If you run the backend-end on 8080 you can deploy the front-end inside the same java process. No need for NGinx

eolivelli avatar Jul 01 '20 06:07 eolivelli