Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
Accumulo >> mail # dev >> Compiling Under Windows (unable to execute generate-thrift.sh)


Copy link to this message
-
Re: Compiling Under Windows (unable to execute generate-thrift.sh)
Using the coberatura profile in my VirtualBox was too slow. I'm in the
mood to write unit tests so wanted to see how hard it would be to run
the tests in Windows (i.e., not in my VirtualBox).

I think I have found a solution to this issue. If anyone validates
this approach, I'll create a JIRA ticket for trunk and commit this
change:

In the trace, core, and proxy modules, change pom.xml by adding two profiles:

      <profile>
          <id>thrift-not-windows</id>
          <activation>
              <os>
                  <family>!windows</family>
              </os>
          </activation>
          <properties>
              <thift.executable>${basedir}/src/main/scripts/generate-thrift.sh</thift.executable>
          </properties>
      </profile>
      <profile>
          <id>thrift-windows</id>
          <activation>
              <os>
                  <family>windows</family>
              </os>
          </activation>
          <properties>
              <thift.executable>${basedir}/src/main/scripts/generate-thrift.bat</thift.executable>
          </properties>
      </profile>

Then change the generate-thrift section to be:

            <configuration>
                <executable>${thift.executable}</executable>
            </configuration>

I created a very simple batch file:

  rem generate-thrift.bat
  rem
  remo placeholder 'do-nothing' script.

Comments?

On Tue, Mar 19, 2013 at 9:33 PM, Eric Newton <[EMAIL PROTECTED]> wrote:
> Just comment out the module in trace/pom.xml that attempts to run the
> thrift compiler.
>
> I'm curious... why run windows?
>
> -Eric
>
>
> On Tue, Mar 19, 2013 at 7:40 PM, David Medinets <[EMAIL PROTECTED]>wrote:
>
>> Out of curiosity I tried to compile Accumulo using Netbeans on Windows
>> and run into the following error. Is it easy (possible) to avoid
>> executing this script when using Windows?
>>
>> Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec
>> (generate-thrift) on project accumulo-trace: Command execution failed.
>> Cannot run program
>>
>> "C:\Users\medined\Documents\NetBeansProjects\accumulo\trunk\trace\src\main\scripts\generate-thrift.sh"
>> (in directory
>> "C:\Users\medined\Documents\NetBeansProjects\accumulo\trunk\trace"):
>> CreateProcess error=193, %1 is not a valid Win32 application -> [Help
>> 1]
>>