withNamespace() is missing in the DatastoreIO class - google-cloud-dataflow

I created a sample Cloud Dataflow Java project using dataflow Eclipse plugin, I wanted to create a pipeline for DatastoreIO with namespace support, but i couldn't find the withNamespace() in the DatastoreIO class.

UPDATE: DatastoreIO namespace support is available in Cloud Dataflow SDK for Java, version 1.2.0 released this week.
DatastoreIO namespace support is available if you build the development version of the SDK from GitHub, however this version has not yet been released on Maven.
If you would like to use the DatastoreIO namespace support before that release happens, you can install the development version of the SDK using following the Getting Started instructions. The Eclipse project should then automatically pick up the new version, and if it does not you can edit the project pom.xml to manually specify the desired 1.1.1-SNAPSHOT version with these changes.
See also: https://github.com/GoogleCloudPlatform/DataflowJavaSDK/issues/63 (You do not normally need to post both places :).

Related

Twincat C++ - Visual studio configuration error

I am trying to write C++ projects in Twincat, but I get the following error during building.
I have followed the steps mentioned here till the end and has configured WINDDK7 variable in my system environment settings. I do not understand why the build throws error even though the configuration is correct. Can somebody please help?
P.S I am a beginner in Twincat.
What version of TwinCAT are you working with?
As described on this page, the WDK only needs to be installed for 4022 or earlier versions of TwinCAT.
WDK installation only up to TwinCAT 3.1 Build 4022:
The installation of the WDK described here is only necessary up to TwinCAT 3.1. Build 4022. From Build 4024.0, either the WDK must be uninstalled or the previously set system variable WINDDK7 must be renamed so that TwinCAT ignores the WDK.
The error message also provides some valid information, You can disable the WDK requirement for certain projects under the configuration options for the C++ Project:

Eclipse: An internal error occurred during: “Update Hierarchy”

While trying to run the Google cloud dataflow Wordcount example in eclipse referenced here https://cloud.google.com/dataflow/docs/quickstarts/quickstart-java-eclipse
I am getting the following error:
An internal error occurred during: "Update Hierarchy".
Tried to create a TypeHierarchyPipelineOptionsHierarchy for a Java Project 'my project name' where no PipelineOptions type exists
This issue was also faced by somebody else as per the following stackoverflow link:
Eclipse: An internal error occurred during: "Update Hierarchy"
I tried the solution above, the project compiles but it does not run even after Force Update of Snapshots/Releases as explained above.
Based on my research of the problem it looks like google-cloud-dataflow-java-sdk-all-2.0.0-beta1.jar does not have the PipelineRunner class, which is causing the error. The 1.9.0 version of the same jar had those classes.
I cannot use 1.9.0 version of the jar directly because it causes other compilation errors e.g. package change to 'org.apache.beam' instead of 'com.google.cloud.dataflow'
Indeed, there's an issue in the older versions of the Google Cloud Dataflow plugin for Eclipse -- older versions are not forward-compatible with Dataflow SDKs 2.x series, but the project generation may still automatically create a project using the newest 2.x SDK.
To solve the problem, please upgrade to the newest version of the plugin.
Projects generated with versions 1.1.2 of the Dataflow Plugin for Eclipse and earlier will generate projects using the most recent archetype. With the release of Dataflow 2.0.0-beta1, the generated project will use the Apache Beam SDK as an underlying dependency. Modifying the project version to 1.9.0 or earlier will not modify the generated code, which causes the compilation failures you're experiencing.
Version 1.1.3 of the plugin will ensure that any generated project remains within the Dataflow namespace. Future versions will also work forwards-compatibly with Apache Beam. Version 1.1.3 should be available - in Eclipse, go to Help -> Check for Updates (possibly running Perform Setup Tasks to clear the cached current version) should make the updated plugin available.
We have published version 1.1.3 of the Dataflow Plugin for Eclipse; the quickstart example should now function. The project you've generated will not work until a future release of the Dataflow Plugin for Eclipse. Updating the plugin and re-running the quickstart should succeed.

Hyperledger SDK for Java chaincode (shim-client-1.0)

I tried to compile chaincode sample and write my own one (https://github.com/hyperledger/fabric/tree/master/examples/chaincode/java/SimpleSample)
However, I can't get a shim-client-1.0. Do you have plans to make java sdk public?
I hope that “shim-client-1.0.jar” will be added to maven repository soon, nevertheless you can try to compile it using source code in “github.com/hyperledger/fabric/core/chaincode/shim/java”.
gradle build
and "shim-client-1.0.jar" will be available in github.com/hyperledger/fabric/core/chaincode/shim/java/build/lib folder.

Hard time setting up a dart project with eclipse plugin

I am setting up a new project (java backend + dart frontend).
On client side I plan to use stagexl as a gaming framework. On server side I will use Google App Engine. (Plus Gradle and GIT ...)
Yesterday I followed http://blog.dartwatch.com/2013/01/integrating-dart-into-eclipse-and-your.html for installing the dart eclipse plugin but I get lots of error popups all the time.
Problems occurred when invoking code from plug-in: "org.eclipse.ui.views.properties.tabbed".
org.eclipse.core.runtime.AssertionFailedException: null argument:
at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:85)
at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:73)
at org.eclipse.ui.views.properties.ResourcePropertySource.<init>(ResourcePropertySource.java:134)
at com.google.dart.tools.ui.DartElementAdapterFactory.getProperties(DartElementAdapterFactory.java:204)
at com.google.dart.tools.ui.DartElementAdapterFactory.getAdapter(DartElementAdapterFactory.java:140)
at org.eclipse.core.internal.adapter.AdapterFactoryProxy.getAdapter(AdapterFactoryProxy.java:80)
...
My setup:
Dart Editor for Eclipse 0.4.5.r21094 com.google.dart.eclipse.feature.feature.group dartlang.org
Eclipse EGit 2.3.1.201302201838-r org.eclipse.egit.feature.group Eclipse EGit
Eclipse IDE for Java EE Developers 1.5.2.20130211-1820 epp.package.jee null
Google App Engine Java SDK 1.7.7 1.7.7 com.google.appengine.eclipse.sdkbundle.feature.feature.group Google, Inc.
Google Plugin for Eclipse 4.2 3.2.2.v201303261859-rel-r42 com.google.gdt.eclipse.suite.e42.feature.feature.group Google, Inc.
Gradle IDE 3.2.0.201301240803-M2 org.springsource.ide.eclipse.gradle.feature.feature.group SpringSource, a division of VMware, Inc.
A beer or two to the one who helps me!
Instead of installing Eclipse and then installing the Dart plugin, I recommend you to download the Dart Editor from their page
That is an already fully functional Eclipse instance prepared for dart usage.
From there, you can create a new project and they will give you some pre-defined templates.

IntelliJ 11 - Grails SDK is not configured

I have recently upgraded my IntelliJ 10 to the latest 11.0.1 version. I am writing grails app and until I was using the older version of IntelliJ everything was fine, however 11 doesn't allow me to successfully add Grails SDK (2.0.0) - I was trying to add the framework support, this however doesn't seem to be persisted (after adding Groovy and then choosing Grails - nothing happens). I have tried to follow those steps as well: IntelliJ IDEA 9.0 - unable to select project SDK for Grails application
I would be grateful if someone would be able to point me how to configure Grails SDK - or what could be wrong in my configuration.
Thanks,
This is exactly the way that I have my global library defined and still I was having exactly the same issue.
I followed OverZealous advice and created a new Grails project named exactly the same as the original one and boom everything is fine now! Thanks for help.
You don't need both Groovy and Grails for Grails project, just use Grails SDK. When creating a new Grails project there is an option to add new SDK, select the home path of your Grails installation and it will be configured automatically as a Global Library and this library will be added as a dependency to your module.
Grails library configuration contains all the jars from GRAILS_HOME\dist and GRAILS_HOME\lib, plus all the jars from the src directory.
In other words, it's not configured as a framework, it's just a library with all the jars from Grails distribution added to the module dependencies.
Each time I restart IntelliJ, version 13.1.2, it loses the SDK configuration. If I right-click on the project and "Add Framework Support" I can choose the SDK that is already configured and it will begin functioning properly. When it loses this setting, it won't allow me to compile or launch the app with grails. I reject the ideas to recreate the project, (been there/done that) as I have many dependent modules I have to verify and I lose all my run configurations that I've setup manually.
I'm posting the "Add framework support" step here so it might help someone else; hopefully a more permanent solution for you, but its temporary in my situation

Resources