Comments (4)
Hi @sakalouski
You cannot access files
anymore. You need to get blobs
or tree_entries
, depending on what do you want to do.
Don't hesitate to ask if you have some other doubts.
from jgit-spark-connector.
@ajnavarro Thanks a lot - it worked - got the access to the file contents.
Do You probably know, how to get git blame data? In other words, I want to get the code of each commit. I could probably do it as difference of previous version and the current one, but do not think that it is the most efficient way.
Another question: searching over the .siva database, I have noticed that spark uses anomalously tiny portion of resources (10% of all the cores), while on .parquet data it uses around 80-90%. As a result, materializing 1 entry from 3 Gb folder (something.filter().take(1)) takes ~10 seconds. Any ideas, how to fix it?
Changing parameters of spark, like core numbers and executor memory does not give anything. Repartitioning does not improve the performance.
Thank You!
from jgit-spark-connector.
Do You probably know, how to get git blame data?
We don't have any specific logic for that. To emulate git blame you should go over a reference history reading the specific file and getting modified lines comparing blob contents and the commit committer name and email (standard git blame is doing basically that).
Another question: searching over the .siva database, I have noticed that spark uses anomalously tiny portion of resources (10% of all the cores), while on .parquet data it uses around 80-90%.
When you are processing Siva files, most of the time it will be reading content from that Siva files. Essentially they are git repositories with packfiles, so data is heavily compressed. Also, we parallelize per repository, that means that your process will be as slow as the biggest repository or siva file. I recommend you to preprocess your data and save it to parquet.
from jgit-spark-connector.
from jgit-spark-connector.
Related Issues (20)
- Return of org.eclipse.jgit.errors.RevWalkException: Walk failure HOT 2
- [feature request] Handy handling of bad siva-files HOT 2
- Engine fails on UAST when run spark-shell with --packages argument in cluster mode HOT 6
- Modify requirements file, Pyspark version HOT 2
- Add a configuration flag to skip siva read errors
- [Change] Files not cleaned in /tmp folder on Spark Workers when using apollo HOT 2
- commits filtering counterintuitive behaviour HOT 1
- Engine fails to extract UASTs on actual Spark cluster HOT 5
- Latest version of Docker image engine-jupyter missing bblfsh HOT 6
- Expose Bblfsh UAST extraction errors in Engine
- Jupyter example notebook doesn't work out-of-the-box
- Docker Hub 'latest' image doesn't point to master Dockerfile. HOT 2
- Missing dependencies for pyspark in README HOT 6
- Build and test process leave the repository in dirty state for git describe HOT 3
- Engine fails on siva files from pipeline-staging cluster HOT 14
- Update README with EOL
- "standard" repository format does not work HOT 7
- WARN Repository: close() called when useCnt is already zero
- WARN CommitIterator: missing object HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jgit-spark-connector.