Code Monkey home page Code Monkey logo

bravo's People

Contributors

gyfora avatar juhoautio avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bravo's Issues

Support blink 1.5.1

Will you support blink 1.5.1 wich use savepoint version3 and is base on flink 1.5.1?
I changed Gradle dependencies form org.apache.flink to com.alibaba.com and changed flink version to 1.5.1 and some java classes.
I read state from savepoint successfully but failed while writing state back.
My changes here : DG-Wangtao@5cf2589

License

I'm interested in trying bravo, but I didn't see any mention of a software license. It would be good to have a LICENSE file in the repository.

Build failures: unknown property 'nexusUsername' & no configured signatory

gradlew clean build

FAILURE: Build failed with an exception.

* Where:
Build file '~/bravo/build.gradle' line: 93

* What went wrong:
A problem occurred evaluating root project 'bravo'.
> Could not get unknown property 'nexusUsername' for object of type org.gradle.api.publication.maven.internal.deployer.DefaultGroovyMavenDeployer.

I know this is trivial to fix locally by removing these lines:

bravo/build.gradle

Lines 92 to 98 in 4311dc2

repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/") {
authentication(userName: nexusUsername, password: nexusPassword)
}
snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots/") {
authentication(userName: nexusUsername, password: nexusPassword)
}

After that I get:

> Task :bravo:signArchives FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':bravo:signArchives'.
> Cannot perform signing task ':bravo:signArchives' because it has no configured signatory

which can be fixed by removing:

bravo/build.gradle

Lines 54 to 56 in 4311dc2

signing {
sign configurations.archives
}

It would be nice to have some official way to avoid these errors so that there's no need to work on a dirty repo locally. What would you suggest?

Invalid deserialized value for MapState

I'm using bravo to debug a MapState, and find the deserialized value is wrong while the outkey and the mapkey are right.

The MapState is used to record user login times in a day, so the outvalue values should be mostly 1, but what I get is mostly 358 .

Could you please help me narrow down the problem? Thanks a lot!

// MapState definition in Flink application
MapStateDescriptor<String, Integer> stateDescriptor = new MapStateDescriptor<>(
                "loggedInUsers",
                String.class,
                Integer.class
        );
// relative code in bravo application
DataSet<Tuple3<String, String, Integer>> state = reader.readKeyedStates(
                new MapStateKKVReader<>(stateId, BasicTypeInfo.STRING_TYPE_INFO, BasicTypeInfo.STRING_TYPE_INFO,
                        BasicTypeInfo.INT_TYPE_INFO));

StateMetadataUtils hides actual errors

Looks like not catching Throwable #13 wasn't enough yet.

I got this error:

java.lang.IllegalStateException: Cannot read state of a stateless operator.
	at com.king.bravo.reader.OperatorStateReader.lambda$readKeyedStates$6(OperatorStateReader.java:101)
	at java.util.Optional.orElseThrow(Optional.java:290)
	at com.king.bravo.reader.OperatorStateReader.readKeyedStates(OperatorStateReader.java:101)

The actual cause was another Exception, which got silently ignored here:

} catch (Exception e) {
return Optional.empty();
}

Any reason to return Optional.empty() here instead of throwing a runtime exception (that wraps the original exception)?

I found the actual exception with debugger:

java.lang.RuntimeException: org.apache.flink.core.fs.UnsupportedFileSystemSchemeException: Could not find a file system implementation for scheme 's3'. The scheme is not directly supported by Flink and no Hadoop file system to support this scheme could be loaded.

Yeah, apparently that happens because I had copied the savepoint from its original s3 location to my local machine (is it really so that even savepoint folders can't be moved anywhere from their original location?)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.