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

[PGA] Pointer redeclared during import "unsafe" (borges-indexer on Windows) #77

Open
sakalouski opened this issue Sep 5, 2018 · 13 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@sakalouski
Copy link

image

I have tried under admin rights as well - no luck.

@vmarkovtsev
Copy link
Collaborator

vmarkovtsev commented Sep 5, 2018

Not sure if borges-indexer build is supported on Windows. Tagging @erizocosmico

@sakalouski
Copy link
Author

Thanks for such a rapid reply! Not a problem - launching it on linux then:)

@erizocosmico
Copy link
Contributor

Looks like a dependency might have problems building on windows. To be honest, we never tried on Windows as we're not currently supporting windows as an OS on that tool.

@sakalouski
Copy link
Author

sakalouski commented Sep 12, 2018

@vmarkovtsev I have installed pga. I have downloaded some repos with .siva extension.

Still, from the docs You provide, there is couple of unclear points:

  1. how to query this .siva from pyspark?
  2. how to get this detailed metadata mentioned in engine, but without engine without a docker (working on a cluster - no root)?

Generally, I do not see logics behind the suggestion of these 3 tools in PublicGitArchive README (pga, multitool and borges-indexer). Possibly it is unclear only to me.

Concluding: I want an access to detailed metadata and timestamped source code. What do I do to get it without a docker?:)

Thank You

@vmarkovtsev
Copy link
Collaborator

@sakalouski Your choice is jgit-spark-connector
It is a JAR which is plugged into Spark. If your programming language is Python, it is as easy as

from pyspark.sql import SparkSession
from sourced.engine import Engine
session = SparkSession.builder.master("local[*]").appName("test").config("spark.jars.packages", "tech.sourced:engine:0.7.0").getOrCreate()
engine = Engine(session, "/path/to/siva")
print(engine.repositories.collect())

@sakalouski
Copy link
Author

@vmarkovtsev Thank You for the information!

@vmarkovtsev
Copy link
Collaborator

BTW not sure what you mean by

detailed metadata and timestamped source code

In my understanding "detailed metadata" is the commit message, author and date and "timestamped source code" is git blame. So your other option is to run Hercules over the siva files without using Spark. If you really need git blame you will have to hack some Go code using the Hercules framework.

@sakalouski
Copy link
Author

@vmarkovtsev regarding the metadata - I mean exactly what You have mentioned. Thanks for the hints - having a look!

@vmarkovtsev
Copy link
Collaborator

Oh and there is another option: SQL interface to the underlying repos via gitbase

@sakalouski
Copy link
Author

@vmarkovtsev There are so many tools, but all of them are somehow different:/
So, in case if I want to make all the data processible in Pyspark, would You suggest using Hercules or gitbase?
As I see, gitbase mentions Apache Spark integration - does it mean I could config it to run Spark SQL?

vmarkovtsev added a commit to vmarkovtsev/gitbase that referenced this issue Sep 13, 2018
People get confused and think that it is already working src-d/datasets#77 (comment)
@vmarkovtsev
Copy link
Collaborator

As far as I know gitbase+Spark integration is not ready yet. But yep this is the goal.

So the only way to run PySpark over siva atm is through jgit-spark-connector (former "engine").

@sakalouski
Copy link
Author

@vmarkovtsev Thank You Vadim - You have saved me lots of time!

@eiso
Copy link
Member

eiso commented Sep 28, 2018

@sakalouski we'll keep you posted when Spark SQL integration is ready, it is on the top of our priority list. cc @vcoisne

@smola smola changed the title Pointer redeclared during import "unsafe" [PGA] Pointer redeclared during import "unsafe" (borges-indexer on Windows) Oct 2, 2018
@smola smola added bug Something isn't working help wanted Extra attention is needed labels Oct 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

5 participants