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

The java/swift tutorial fails to build #76

Closed
vprithvi opened this issue Jan 29, 2015 · 3 comments
Closed

The java/swift tutorial fails to build #76

vprithvi opened this issue Jan 29, 2015 · 3 comments

Comments

@vprithvi
Copy link

It includes com.facebook:facebook-base-pom:pom, which isn't on Maven Central.

Other includes that I couldn't find on Maven Central are
com.facebook.nifty:nifty-header-protocol
com.facebook.swift.swift-fb303

How do we get started on a Java server/client that uses the THeaderProtocol on a THeaderTransport ?

fbthrift/thrift/tutorial/java/swift> mvn clean build                                                                                                                      
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=4048m; support was removed in 8.0
[INFO] Scanning for projects...
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR]   The project com.facebook.swift:swift-tutorial-parent:0.11.0-SNAPSHOT (/Users/prithvi/knewton/fbthrift/thrift/tutorial/java/swift/pom.xml) has 1 error
[ERROR]     Non-resolvable parent POM: Failure to find com.facebook:facebook-base-pom:pom:7 in https://nexus.knewton.net/nexus/content/groups/public was cached in the local repository, resolution will not be reattempted until the update interval of knewton has elapsed or updates are forced and 'parent.relativePath' points at wrong local POM @ line 9, column 11 -> [Help 2]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
@alandau
Copy link
Contributor

alandau commented Jan 30, 2015

Java builds were not really tested in fbthrift. The supported version of Java for fbthrift is https://github.com/facebook/nifty/ and https://github.com/facebook/swift, both of which contain examples (or the original Apache Thrift).

@alandau alandau closed this as completed Jan 30, 2015
@vprithvi
Copy link
Author

@alandau We are most interested in THeaderProtocol and THeaderTransport, both of which are not contained in the facebook/nifty or facebook/swift projects.
Is it planned for these to be generally available ?

@alandau
Copy link
Contributor

alandau commented Jan 30, 2015

Yes, header protocol support for nifty and swift is available internally and we're working on opensourcing it.

facebook-github-bot pushed a commit that referenced this issue Apr 11, 2019
Summary:
Needs to be enabled by option PYTHON_VENV in the config.

shell_builder.py sets up the venv and uses it once; calling activate

For docker we set ENV; resulting in the virtual environment being present
when the resulting container is run as well as at build time. This is also cleaner
and easier to follow than re-asserting on each RUN step.

For Lego builder we need to source activate on each command as environment
will not persist between commands.

While man on the posts say it makes no sense to use virtualenv within docker
container, this method simplifies the process considerably as we can rely on the
name pip being valid and we don't need to either ensure we are root or pass the
--user flag to pip and setuptools.

Pull Request resolved: facebookarchive/LogDevice#76

Reviewed By: wez

Differential Revision: D14875633

Pulled By: calebmarchent

fbshipit-source-id: aabbcdd509d2a59fa36f8004032a052f014ce1ba
facebook-github-bot pushed a commit that referenced this issue Mar 14, 2022
Summary:
X-link: facebookincubator/fizz#76

X-link: facebook/proxygen#402

X-link: facebook/folly#1735

X-link: facebookarchive/bistro#60

X-link: facebook/watchman#1012

Pull Request resolved: #487

X-link: facebook/fboss#114

X-link: facebook/fb303#27

When using getdeps inside of a container, Python's urllib isn't able to download from dewey lfs (see this post for details https://fb.workplace.com/groups/systemd.and.friends/permalink/2747692278870647/).

This allows for getdeps to use `libcurl` to fetch dependencies, which allows for a getdeps build to work inside the container environment.

Reviewed By: mackorone

Differential Revision: D34696330

fbshipit-source-id: 06cae87eef40dfa3cecacacee49234b6737d546f
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

No branches or pull requests

2 participants