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

Add user agent for log service client #363

Merged
merged 5 commits into from
Oct 15, 2019
Merged

Conversation

jkaka
Copy link
Contributor

@jkaka jkaka commented Sep 29, 2019

No description provided.

@CLAassistant
Copy link

CLAassistant commented Sep 29, 2019

CLA assistant check
All committers have signed the CLA.

Comment on lines 5 to 9
/**
* @author jiashuangkai
* @version 1.0
* @since 2019-09-27 14:56
*/
Copy link
Collaborator

Choose a reason for hiding this comment

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

remove this please

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok have deleted

@@ -0,0 +1,41 @@
package org.apache.spark.streaming.aliyun.logservice.utils;
Copy link
Collaborator

Choose a reason for hiding this comment

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

missing license header

Copy link
Contributor Author

Choose a reason for hiding this comment

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

have added

import java.util.Properties;

public class VersionInfoUtils {
private static final String VERSION_INFO_FILE = "spark-versioninfo.properties";
Copy link
Collaborator

Choose a reason for hiding this comment

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

It is better to use "versioninfo.properties" instead of "spark-versioninfo.properties"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

other sdk have this file: versioninfo.properties

Copy link
Collaborator

Choose a reason for hiding this comment

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

or you can use "emr-logservice-versioninfo.properties" instead.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok

* @since 2019-09-27 14:56
*/
public interface Constants {
String LOG_CONNECTOR_USER_AGENT = VersionInfoUtils.getDefaultUserAgent();
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is there any need to add this new class?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Many classes use this constant

Copy link
Collaborator

Choose a reason for hiding this comment

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

you can use "VersionInfoUtils.getDefaultUserAgent()" directly

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok

@uncleGen
Copy link
Collaborator

Sign the CLA please

@jkaka jkaka changed the title add version Add user agent for log service client Oct 15, 2019
@uncleGen
Copy link
Collaborator

LGTM,thanks

@uncleGen uncleGen merged commit ec3b2e8 into aliyun:master-2.x Oct 15, 2019
@uncleGen uncleGen added this to the v1.8.0 milestone Oct 15, 2019
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

3 participants