Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Java samples, documentation, fix Windows issue. #138

Merged
merged 7 commits into from
Jun 16, 2020

Conversation

TsuyoshiUshio
Copy link
Contributor

I update the java implementation on these points.

Update

  • Fix Windows issue (Windows requires cacert.pem file and more attribute requires for the annotation)
  • Update azure-maven-plugin version to 1.5.0 (latest)
  • Update functions core tools from v2 to v2 or above with v3 for java sample
  • Documentation update for works both on Mac and Windows
  • Provide shell/powershell script for installing Kafka Extension and pem file (windows only)
  • Adding the section, how to deploy to Azure (Premium Linux/Windows)

Test

  • Windows (bash, powershell) client
  • Mac client
  • Function App (Premium plan Linux EP1)
  • Function App (Premium plan Windows EP1)

Remove following line. This line is windows only.

```java
sslCaLocation = "confluent_cloud_cacert.pem", // Remove this attribute for Linux/Mac users.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is only for linux/mac, not windows?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Linux and mac works without this. Windows requires. Probably, the default cacert already includes it. (I didn't need it when I use Mac and deploy to Linux Premium)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

<maven.compiler.target>1.8</maven.compiler.target>
<azure.functions.maven.plugin.version>1.5.0</azure.functions.maven.plugin.version>
<azure.functions.java.library.version>1.3.0</azure.functions.java.library.version>
<functionAppName>kafka-function-20190419163130420</functionAppName>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a way to mention that the app name need to be updated as it should be unique?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point! I wrote it on the documentation, however, I'd like to find a way to write something around here.

authenticationMode = BrokerAuthenticationMode.PLAIN,
protocol = BrokerProtocol.SASLSSL,
sslCaLocation = "confluent_cloud_cacert.pem", // Remove this attribute for Linux/Mac users.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we please check removing it with not throw any warnings?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For the windows, It could be a problem. Windows has the entry on Registry. However, .NetCore can't see the registry. That is why we need to add pem only on windows.

amamounelsayed
amamounelsayed previously approved these changes Jun 13, 2020
@amamounelsayed
Copy link
Contributor

@TsuyoshiUshio Thank you so much sir for your answers!

@TsuyoshiUshio TsuyoshiUshio merged commit 789bedf into dev Jun 16, 2020
@TsuyoshiUshio TsuyoshiUshio deleted the tsushi/fixusername branch August 28, 2020 03:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants