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

Windows Support #1

Open
kadaan opened this issue Feb 9, 2015 · 13 comments · May be fixed by prestodb/presto#23096
Open

Windows Support #1

kadaan opened this issue Feb 9, 2015 · 13 comments · May be fixed by prestodb/presto#23096

Comments

@kadaan
Copy link

kadaan commented Feb 9, 2015

Can you please change lines 92 & 97 to use to the correct path separator for each platform?

@jvanzyl
Copy link
Contributor

jvanzyl commented Feb 9, 2015

Sure. I don't think the first is an issue as that's Ant scanning code which I believe does the right thing but I'll verify. The second instance looks like an issue.

@kadaan
Copy link
Author

kadaan commented Feb 9, 2015

I agree. I changed both to use File.separator and it works on Windows now.

@jvanzyl jvanzyl self-assigned this Feb 9, 2015
@kadaan
Copy link
Author

kadaan commented Feb 9, 2015

Thanks! I have another windows support issue that is related to takari and presto, but am having a hard time finding out where the source is and where to created the issue. The problem is that the io.provis.provisio plugin uses takari.archiver 0.1.7. This version has an issue with reading windows file attributes. This issue is fixed in takari.archiver 0.1.8. Do you know where I can file an issue to have io.provis.provisio depend on takari.archiver 0.1.8 and have a new package pushed?

@jvanzyl
Copy link
Contributor

jvanzyl commented Feb 9, 2015

I will fix that too and push it. I will try it with Presto and if it's all good I'll push new releases and make a pull request for Presto.

@kadaan
Copy link
Author

kadaan commented Feb 9, 2015

Thanks a ton!!!

@kadaan
Copy link
Author

kadaan commented Mar 12, 2015

Any update on the io.provis.provisio, takari.archiver issue? This one makes it especially difficult to build Presto on Windows because I cannot find the source and have to modify the provisio-0.1.14.pom in my maven package cache, updating takariArchiverVersion to 0.1.8.

Megaprog added a commit to Megaprog/presto-maven-plugin that referenced this issue Dec 16, 2018
 replaced slash by File.separateChar
@zygitup
Copy link

zygitup commented Jan 8, 2019

The presto-maven-plugin:0.1.12 compilation prompt cannot find the Java class, which is a custom class in the project.Then use the presto - maven plugin: 0.1.12 compile on Windows at ${project. Build. OutputDirectory} position is not available, can't access.But manual access is available.May I ask what the problem is?thank you

The wrong case:
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal io.takari.maven.plugins:presto-maven-plugin:0.1.12:generate-service-descriptor (default-generate-service-descriptor) on project carbondata-presto: Execution default-generate-service-descriptor of goal io.takari.maven.plugins:presto-maven-plugin:0.1.12:generate-service-descriptor failed: A required class was missing while executing io.takari.maven.plugins:presto-maven-plugin:0.1.12:generate-service-descriptor: org\apache\carbondata\presto\CarbonColumnVectorWrapper (wrong name: org/apache/carbondata/presto/CarbonColumnVectorWrapper)

Caused by: java.lang.NoClassDefFoundError: org\apache\carbondata\presto\CarbonColumnVectorWrapper (wrong name: org/apache/carbondata/presto/CarbonColumnVectorWrapper)

@Megaprog
Copy link
Contributor

Megaprog commented Jan 8, 2019

I have fixed it in my pull request. This isn't approved yet.

@zygitup
Copy link

zygitup commented Jan 8, 2019

I have fixed it in my pull request. This isn't approved yet.

Are you answering my question?When will this problem be fixed?Please inform me when it is repaired. Thank you very much

@zygitup
Copy link

zygitup commented Jan 17, 2019

I have fixed it in my pull request. This isn't approved yet.

Hello, when can I update this version? TKS

@Aqua-Dream
Copy link

I have fixed it in my pull request. This isn't approved yet.

You pull request #11 has one problem:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:2.17:check (checkstyle) on project presto-kafka: You have 43401 Checkstyle violations. -> [Help 1]

I suggest writing

classPath.substring(0, classPath.length() - 6).replace(File.separator, ".");

instead of

classPath.substring(0, classPath.length() - 6).replace(File.separator, '.');

because it seems that "File.separator" will return a string instead of a char.

@Megaprog
Copy link
Contributor

Megaprog commented Apr 11, 2019

Hello! I did not use "File.separator" in my pull request #11 but "File.separateChar"

@Aqua-Dream
Copy link

Hello! I do not use "File.separator" in my pull request #11 but "File.separateChar"

That's right. Sorry for this.

wanglinsong pushed a commit that referenced this issue Feb 22, 2023
 replaced slash by File.separateChar
@dnskr dnskr linked a pull request Jun 27, 2024 that will close this issue
6 tasks
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 a pull request may close this issue.

5 participants